On ths subject of Scans: How to set (reset) the Scan timeout?
George S. Lockwood
gslockwood
Thu Sep 7 09:26:48 PDT 2006
Hello,
How can one continue to get "automatic" scans while connected to an ap?
At cli-style app startup, I force an enable_network to a non-existant
ap, just so I can get a scan list built. This apparently causes a
scan timeout to be set at 5secs and I get periodic scans. Great!
but once I enable a real network and connect, the scan timeout goes to
0 and I lose the periodic scans. After a good connect, I cal status,
set ap_scan=1, then scan.
How to set that timeout back to 5 or x seconds and continue to get
scans while connected?
here's the log before the connect (and then after -way at the end):
thx
.
.
.
45 4e 41 42 4c 45 5f 4e 45 54 57 4f 52 4b 20 30 ENABLE_NETWORK 0
1157645925.937500: CTRL_IFACE: ENABLE_NETWORK id=0
1157645925.937500: Setting scan request: 0 sec 0 usec
1157645925.937500: CTRL: Overlapped write started for 00B88520
1157645925.953125: CTRL: Overlapped write completed: dst=00B88520 err=0 bytes=3
1157645925.953125: CTRL: Overlapped read started for 00B88520
1157645925.953125: State: DISCONNECTED -> SCANNING
1157645925.953125: Starting AP scan (specific SSID)
1157645925.968750: Scan SSID - hexdump_ascii(len=23):
39 44 41 30 42 45 45 44 2d 37 32 34 38 2d 34 35 9DA0BEED-7248-45
30 61 2d 42 32 37 43 0a-B27C
1157645926.031250: Trying to get current scan results first without
requesting a new scan to speed u
p initial association
1157645926.031250: Scan results: 0
1157645926.031250: Selecting BSS from priority group 0
1157645926.031250: No suitable AP found.
1157645926.031250: Setting scan request: 0 sec 0 usec
1157645926.046875: Starting AP scan (broadcast SSID)
1157645926.046875: NDIS: turning radio on before the first scan
1157645926.046875: NDIS: Set OID 0d010102 - hexdump(len=36): [REMOVED]
1157645926.062500: NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
1157645933.062500: Scan timeout - try to get results
1157645933.062500: Scan results: 5
1157645933.062500: Selecting BSS from priority group 0
1157645933.062500: 0: 00:0d:97:00:48:0f ssid='Feather' wpa_ie_len=0
rsn_ie_len=0 caps=0x0
1157645933.062500: skip - no WPA/RSN IE
1157645933.062500: 1: 00:11:50:26:c6:7c ssid='OPSMBCL1' wpa_ie_len=0
rsn_ie_len=0 caps=0x10
1157645933.062500: skip - no WPA/RSN IE
1157645933.062500: 2: 00:13:10:cd:b1:4c ssid='mango' wpa_ie_len=24
rsn_ie_len=0 caps=0x10
1157645933.062500: skip - SSID mismatch
1157645933.062500: 3: 02:d8:d9:a1:f3:05 ssid='airportthru'
wpa_ie_len=0 rsn_ie_len=0 caps=0x0
1157645933.062500: skip - no WPA/RSN IE
1157645933.062500: 4: 00:14:51:74:ab:87 ssid='FAM AEx Work'
wpa_ie_len=26 rsn_ie_len=26 caps=0x10
1157645933.062500: skip - SSID mismatch
1157645933.062500: No suitable AP found.
1157645933.078125: Setting scan request: 5 sec 0 usec
1157645938.078125: Starting AP scan (specific SSID)
1157645938.078125: Scan SSID - hexdump_ascii(len=23):
39 44 41 30 42 45 45 44 2d 37 32 34 38 2d 34 35 9DA0BEED-7248-45
30 61 2d 42 32 37 43 0a-B27C
1157645938.078125: NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
.
. after a good connect, I cal status, set
ap_scan=1, then scan
.
1157646217.000000: State: GROUP_HANDSHAKE -> COMPLETED
1157646217.000000: CTRL-EVENT-CONNECTED - Connection to
00:0d:97:00:48:0f completed (auth) [id=0 id_
str=]
1157646217.000000: CTRL_IFACE monitor send 00B850F0
1157646217.000000: EAPOL: External notification - portValid=1
1157646217.000000: EAPOL: SUPP_PAE entering state AUTHENTICATED
1157646217.062500: CTRL: Overlapped read completed: dst=00B88520 err=0 bytes=14
1157646217.062500: RX ctrl_iface - hexdump_ascii(len=14):
53 54 41 54 55 53 2d 56 45 52 42 4f 53 45 STATUS-VERBOSE
1157646217.453125: CTRL: Overlapped write started for 00B88520
1157646217.453125: CTRL: Overlapped write completed: dst=00B88520
err=0 bytes=492
1157646217.468750: CTRL: Overlapped read started for 00B88520
1157646217.468750: CTRL: Overlapped read completed: dst=00B88520 err=0 bytes=9
1157646217.468750: RX ctrl_iface - hexdump_ascii(len=9):
41 50 5f 53 43 41 4e 20 31 AP_SCAN 1
1157646217.468750: CTRL: Overlapped write started for 00B88520
1157646217.468750: CTRL: Overlapped write completed: dst=00B88520 err=0 bytes=3
1157646217.468750: CTRL: Overlapped read started for 00B88520
1157646217.468750: CTRL: Overlapped read completed: dst=00B88520 err=0 bytes=4
1157646217.468750: RX ctrl_iface - hexdump_ascii(len=4):
53 43 41 4e SCAN
1157646217.468750: Setting scan request: 0 sec 0 usec
<----- !!!
1157646217.468750: CTRL: Overlapped write started for 00B88520
1157646217.468750: CTRL: Overlapped write completed: dst=00B88520 err=0 bytes=3
1157646217.468750: CTRL: Overlapped read started for 00B88520
1157646217.468750: Starting AP scan (specific SSID)
1157646217.484375: Scan SSID - hexdump_ascii(len=13):
46 65 61 74 68 65 72 53 65 63 75 72 65 FeatherSecure
1157646217.484375: NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
1157646224.484375: Scan timeout - try to get results
1157646224.484375: Scan results: 13
1157646224.500000: Selecting BSS from priority group 0
1157646224.500000: 0: 00:0d:97:00:48:0f ssid='FeatherByEarthLink'
wpa_ie_len=28 rsn_ie_len=26 caps=0
x0
1157646224.500000: skip - SSID mismatch
1157646224.500000: 1: 00:0d:97:00:48:0f ssid='FeatherSecure'
wpa_ie_len=28 rsn_ie_len=26 caps=0x10
1157646224.500000: selected based on WPA IE
1157646224.500000: Already associated with the selected AP.
1157646242.484375: EAPOL: startWhen --> 0
1157646243.484375: EAPOL: authWhile --> 0
More information about the Hostap
mailing list