Changeset 3363
- Timestamp:
- Oct 12, 2012 12:55:19 AM (7 months ago)
- File:
-
- 1 edited
-
dev/libertas.fth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dev/libertas.fth
r3361 r3363 2283 2283 : reset ( -- flag ) reset-nic ; 2284 2284 2285 : do-disassociate ( -- ) 2286 " target-mac$" $call-supplicant disassociate 2287 ; 2288 2289 \ adr len is the result of (scan) - a list of APs and their characteristics 2285 2290 : test-association ( adr len -- error? ) 2286 " OLPCOFW" " select-ssid?" $call-supplicant if 2287 " (do-associate)" $call-supplicant if 2291 " OLPCOFW" " select-ssid?" $call-supplicant if ( ) 2292 " (do-associate)" $call-supplicant if ( ) 2288 2293 \ Success 2289 " target-mac$" $call-supplicantdisassociate2294 do-disassociate 2290 2295 " true to ssid-reset?" ['] evaluate catch if 2drop then 2291 2296 false … … 2333 2338 : scan-wifi ( -- ) (scan-wifi) drop ; 2334 2339 2340 : reassociate ( -- ) 2341 do-disassociate 2342 do-associate if ." succeeded" else ." failed" then cr 2343 ; 2344 2335 2345 : .rssi ( snr nf -- ) 2336 2346 2dup swap + ." rssi" 4 .r ( snr nf ) … … 2423 2433 ; 2424 2434 2425 : ta-a ." associate " close open drop;2435 : ta-a ." associate " reassociate ; 2426 2436 2427 2437 : test-antenna ( -- )
Note: See TracChangeset
for help on using the changeset viewer.
