ath client loose connection to ath hostap

From: Johann Hugo <jhugo_at_icomtek.csir.co.za>
Date: Tue, 5 Jul 2005 14:30:04 +0200
Hi 

I have 2x soekris 4501 units with atheros adapters,  1=hostap mode, 1=client.
With a continues ping, everything keeps running (16+ hours), but after an 
inactive period they lose connectivity. The client still reports it is 
associated, but there is no IP connectivity. After "ath down" + "ath up" it 
does not want to associated with hostap any more. After client reboot it 
works fine again. After inactive period - same problem.

Regards
Johann

Debug info:
-------------------------------------------------------------------------------------------------------------
ath client side (soekris 4501, Senao SL-5354MP Aries - 11a):
#  uname -a
FreeBSD  6.0-CURRENT FreeBSD 6.0-CURRENT #23: Mon Jul  4 08:17:59 UTC 2005     
jhay_at_dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL  i386

# sysctl -a | grep dev.ath
dev.ath.0.%desc: Atheros 5212
dev.ath.0.%driver: ath
dev.ath.0.%location: slot=16 function=0
dev.ath.0.%pnpinfo: vendor=0x168c device=0x0013 subvendor=0x168c 
subdevice=0x2026 class=0x020000
dev.ath.0.%parent: pci0
dev.ath.0.countrycode: 0
dev.ath.0.regdomain: 0
dev.ath.0.debug: 0
dev.ath.0.slottime: 9
dev.ath.0.acktimeou:: 25
dev.ath.0.ctstimeout: 25
dev.ath.0.softled: 0
dev.ath.0.ledpin: 0
dev.ath.0.ledon: 0
dev.ath.0.ledidle: 675
dev.ath.0.txantenna: 0
dev.ath.0.rxantenna: 1
dev.ath.0.txintrperiod: 5
dev.ath.0.diag: 0
dev.ath.0.tpscale: 0
dev.ath.0.smoothing_rate: 95
dev.ath.0.sample_rate: 10

ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/54Mbp))
        ttatus: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 bintval 100

# ping -s 1450 -i 0.1 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 1450 data bytes
1458 bytes from 192.168.10.1: icmp_seq=0 ttl=64 time=3.471 ms
1458 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=3.318 ms
1458 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=3.009 ms

After inactive period

# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/6Mbps)
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 bintval 100

# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down

# ifconfig ath0 list scan
SSID            BSSID              CHAN RATE  S:N   INT CAPS
ath101          00:02:6f:34:21:cc   36   54M 16:0   100 E

# athstats
9 beacon miss interrupts
190 tx management frames
788 tx frames discarded prior to association
292 tx failed 'cuz too many retries
467111 long on-chip tx retries
163 tx frames with no ack marked
65352 tx frames with an alternate rate
268948 rx failed 'cuz of bad CRC
92092 rx failed 'cuz of PHY err
    92092 OFDM timing
2504 periodic calibrations
rssi of last ack: 20
avg recv rssi: 15
Antenna profile:
[1] tx  8658453 rx  9200596
[2] tx      138 rx       13

# tcpdump -i ath0 -v -y IEEE802_11_RADIO
tcpdump: data link type IEEE802_11_RADIO
tcpdump: listening on ath0, link-type IEEE802_11_RADIO (802.11 plus BSD radio 
information header), capture size 96 bytes

02:12:09.801761 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 8dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:09.904157 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:10.006560 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 21dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:10.109057 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 22dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:10.211358 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 20dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:10.313754 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 22dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:10.416156 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:10.518559 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 10dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:10.621078 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:10.723374 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:10.825754 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 19dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:10.928153 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 21dB 
signal 0us Beacon[|802.11]
02:12:11.030550 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 21dB 
signal00us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:11.133023 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenaa 1 21dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:11.235354 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:11.337749 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 10dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:11.440154 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:11.542548 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36
02:12:11.644954 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 19dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:11.747348 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 22dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:11.849778 short preamble 6.0 Mb/s 5180 MHz (xx0140) antenna 1 21dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:11.868787 short preamble 6.0 Mb/s 5180 MHz (0x0140) 28dBm tx power 
antenna 0 60us arp who-has 192.168.10.1 tell 192.168.10.2
02:12:11.952148 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 22dB 
signal 0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] 
ESS CH: 36
02:12:12.05454  short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 9dB signal 
0us Beacon (ath101) [6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0 Mbit] ESS CH: 
36

# 80211debug +debug +assoc +xrate +power +scan +wme
net.wlan.0.debug: 0x0 => 0x44a40400<debug,xrate,assoc,scan,power,wme>
# 80211debug scan
net.wlan.0.debug: 0x44a40400 => 0x200000<scan>

# ifconfig ath0 down
# ifconfig ath0 up
begin active scan in 11a mode, scangen 12
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
# ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    21 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 13
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    22 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 14
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    20 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 15
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36     9 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 16
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 4
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    19 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 17
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 5
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 4
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    20 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 18
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 6
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 5
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 4
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36     9 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 19
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 7
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 6
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 5
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 4
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36     9 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 20
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
|
|
|
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 24
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 23
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 22
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 21
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 20
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 19
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 18
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 17
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 16
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 15
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 14
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 13
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 12
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 11
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 10
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 9
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 8
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 7
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 6
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 5
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 4
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36     9 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 37
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 25
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 24
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 23
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 22
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 21
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 20
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 19
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 18
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 17
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 16
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 15
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 14
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 13
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 12
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 11
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 10
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 9
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 8
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 7
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 6
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 5
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 4
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 3
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 2
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 1
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    10 54M   ess   no  "ath101"
begin active scan in 11a mode, scangen 38
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58

# ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_sca

# 80211debug -debug -assoc -xrate -power -scan -wme
net.wlan.0.debug: 0x200000 => 0x0

ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/6Mbps)
        status: no carrier
        ssid ath101
        authmode OPEN privacy OFF txpowmax 10 bintval 100

# wicnntrol -i ath0
NIC serial number:                      [  ]
Station name:                           [  ]
SSID for IBSS creation:                 [ ath101 ]
Current netname (SSID):                 [  ]
Desired netname (SSID):                 [ ath101 ]
Current BSSID:                          [ 00:00:00:00:00:00 ]
Channel list:                           [ 0 0 1510 1515 1 0 0 0 0 2320 23 ]
IBSS channel:                           [ 36 ]
Current channel:                        [ 36 ]
Comms quality/signll/noise:             [ 0 13 0 ]
Promiscuous mode:                       [ Off ]
Intersil-Prism2 based card:             [ 1 ]
Port type (1=BSS, 3=ad-hoc):            [ 1 ]
MAC address:                            [ 00:02:6f:34:21:ce ]
TX rate (selection):                    [ 0 ]
TX rate (actual speed):                 [ 6 ]
RTS/CTS handshake threshold:            [ 2312 ]
Create IBSS:                            [ Off ]
Access point density:                   [ 1 ]
Power Mgmt (1=on, 0=off):               [ 0 ]
Max sleep time:                         [ 100 ]
WEP encryption:                         [ Off ]
TX encryption key:                      [ 0 ]
Encryption keys:                        [  ][  ][  ][  ]

---------------------------------------
Remove power + reboot client:

lab2# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.25
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/54Mbps)
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 bintval 100

lab2# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
64 bytes from 192.168.10.1: icmp_seq=0 ttl=64 time=5.565 ms
64 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=2.505 ms
64 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=2.487 ms
64 bytes from 192.168.10.1: icmp_seq=3 ttl=64 time=2.155 ms
^C
--- 192.168.10.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.155/3.178/5.565/1.385 ms

Inactive period - couple of minutes

lab2# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/9Mbps)
        saatus: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 bintval 100
lab2# ifconfig ath0 down
lab2# ifconfig ath0 up
lab2# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/6Mbps)
        status: no carrier
        ssid ath101
        authmode OPEN privacy OFF txpowmax 34 bintval 100





--------------------------------------------------------------------------------------------------------------------------
ath hostap side (soekris 4501, Senao SL-5354MP Aries - 11a):
lab1# uname -a
FreeBSD lab1 6.0-CURRENT FreeBSD 6.0-CURRENT #23: Mon Jul  4 08:17:59 UTC 2005     
jhay_at_dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL  i386

lab1# sysctl -a | grep dev.ath
dev.ath.0.%desc: Atheros 5212
dev.ath.0.%driver: ath
dev.ath.0.%location: slot=16 function=0
dev.ath.0.%pnpinfo: vendor=0x168c device=0x0013 subvendor=0x168c 
subdevice=0x2026 class=0x020000
dev.ath.0.%parent: pci0
dev.ath.0.countrycode: 0
dev.ath.0.regdomain: 0
dev.ath.0.debug: 0
dev.ath.0.slottime: 9
dev.ath.0.acktimeout: 25
dev.ath.0.ctstimeout: 25
dev.ath.0.softled: 0
dev.ath.0.ledpin: 0
dev.ath.0.ledon: 0
dev.ath.0.ledidle: 675
dev.ath.0.txantenna: 0
dev.ath.0.rxantenna: 1
dev.ath.0.txintrperiod: 5
dev.ath.0.diag: 0
dev.ath.0.tpscale: 0
dev.ath.0.smoothing_rate: 95
dev.ath.0.sample_rate: 10

lab1# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21cc%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:cc
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 dtimperiod 1 bintval 100

After inactive period

lab1# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21cc%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:cc
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 dtimperiod 1 bintval 100

lab1# ifconfig ath0 list scan

lab1# athstats
8 watchdog timeouts
77 tx management frames
6 tx frames discarded prior to association
6 tx stopped 'cuz no xmit buffer
27 tx failed 'cuz too many retries
481959 long on-chip tx retries
2346 tx frames with no ack marked
111519 tx frames with an alternate rate
361711 rx failed 'cuz of bad CRC
6200 rx failed 'cuz of PHY err
    6200 OFDM timing
735915 beacons transmitted
2550 periodic calibrations
rssi of last ack: 32
avg recv rssi: 27
2 switched default/rx antenna
Antenna profile:
[1] tx  8656637 rx  8658297
[2] tx     1304 rx        0
lab1#

tcpdump: listening on ath0, link-type IEEE802_11_RADIO (802.11 plus BSD radio 
information header), capture size 96 bytes
23:01:29.112591 short preamble 24.0 Mb/s 5180 MHz (0x0140) 28dBm tx power 
antenna 0 44us [|llc]44us

lab1# 80211debug +debug +assoc +xrate +power +scan +wme
net.wlan.0.debug: 0x0 => 0x44a40400<debug,xrate,assoc,scan,power,wme>
lab1# 80211debug scan
net.wlan.0.debug: 0x44a40400 => 0x200000<scan>

ab1# ifconfig ath0 down
lab1# ifconfig ath0 up
begin passive scan in 11a mode, scangen 4
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
lab1# ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
ieee80211_cancel_scan: end passive scan
ath0: notify scan done
ieee80211_create_ibss: creating ibss

lab1# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21cc%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:cc
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <hostap>
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 dtimperiod 1 bintval 100

(debug console messages stops on hostap side)

lab1# wicontrol -i ath0
NIC serial number:                      [  ]
Station name:                           [ lab1 ]
SSID for IBSS creation:                 [ ath101 ]
Current netname (SSID):                 [ ath101 ]
Desired netname (SSID):                 [ ath101 ]
Current BSSID:                          [ 00:02:6f:34:21:cc ]
Channel list:                           [ 0 0 1510 1515 1 0 0 0 0 2320 23 ]
IBSS channel:                           [ 36 ]
Current channel:                        [ 36 ]
Comms quality/signal/noise:             [ 0 0 0 ]
Promiscuous mode:                       [ Off ]
Intersil-Prism2 based card:             [ 1 ]
Port type (1=BSS, 3=ad-hoc):            [ 6 ]
MAC address:                            [ 00:02:6f:34:21:cc ]
TX rate (selection):                    [ 0 ]
TX rate (actual speed):                 [ 6 ]
RTS/CTS handshake threshold:            [ 2312 ]
Create IBSS:                            [ Off ]
Access point density:                   [ 1 ]
Power Mgmt (1=on, 0=off):               [ 0 ]
Max sleep time:                         [ 100 ]
WEP encryption:                         [ Off ]
TX encryption key:                      [ 0 ]
Encryption keys:                        [  ][  ][  ][  ]
Received on Tue Jul 05 2005 - 10:33:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC