Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2005 14:19:16 +0100
From:      Richard Arends <richard@unixguru.nl>
To:        freebsd-stable@freebsd.org
Subject:   Atheros (ath0) no RX traffic
Message-ID:  <20051106131916.GO28385@sun.unixguru.nl>

next in thread | raw e-mail | index | archive | help
Hello,

Today I upgraded my laptop from 5-STABLE to 6-STABLE. After the
upgrade, my wireless is not working anymore.

This is my wireless card:

Nov  6 10:05:06 snowlap kernel: ath0: <Atheros 5212> mem 0xf7de0000-0xf7deffff irq 11 at device 12.0 on pci2
Nov  6 10:05:06 snowlap kernel: ath0: mac 5.9 phy 4.3 5ghz radio 3.6
Nov  6 10:05:06 snowlap kernel: ath0: Ethernet address: 00:0b:6b:35:f9:8f
Nov  6 10:05:06 snowlap kernel: ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Nov  6 10:05:06 snowlap kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Nov  6 10:05:06 snowlap kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Nov  6 10:05:06 snowlap kernel: ath0: turbo rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

which I enable with:

ifconfig_ath0="inet 172.16.10.10  netmask 255.255.255.0 ssid wrap.unixguru.nl weptxkey 1 deftxkey 1 wepmode on wepkey $mysecretkey"

After that, my card is up and running without any problem:

ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::20b:6bff:fe35:f98f%ath0 prefixlen 64 scopeid 0x2 
        inet 172.16.10.10 netmask 0xffffff00 broadcast 172.16.10.255
        ether 00:0b:6b:35:f9:8f
        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
        status: associated
        ssid wrap.unixguru.nl channel 3 (2422) bssid 00:0b:6b:35:e7:3a
        authmode OPEN privacy ON deftxkey 1
        wepkey 1:104-bit powersavemode OFF powersavesleep 100 txpowmax 53
        txpower 60 rtsthreshold 2346 fragthreshold 2346 -pureg protmode CTS -wme
        roaming AUTO bintval 100

On my Wrap box (6.0-BETA2 and works with the same(!) card) my laptop is associated:

wrap# ifconfig ath0 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS ERP
00:0b:6b:35:f9:8f    2    3  48M   52  240    370   6720 EPS    0

If I start a ping from 172.16.10.10 (laptop) to 172.16.10.1 (Access Point = wrap), I see the starting
arp packet on the wrap with tcpdump

14:11:38.091729 arp who-has 172.16.10.1 tell 172.16.10.10
        0x0000:  0001 0800 0604 0001 000b 6b35 f98f ac10
        0x0010:  0a0a 0000 0000 0000 ac10 0a01
14:11:38.091799 arp reply 172.16.10.1 is-at 00:0b:6b:35:e7:3a
        0x0000:  0001 0800 0604 0002 000b 6b35 e73a ac10
        0x0010:  0a01 000b 6b35 f98f ac10 0a0a

and on my laptop I see with 'tcpdump -n -i ath0 -y IEEE802_11' the following

14:10:56.038748 Beacon (wrap.unixguru.nl) [1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 Mbit] ESS CH: 3, PRIVACY
14:10:56.134734 Data IV:dcf97 Pad 0 KeyID 0
14:10:56.135735 arp who-has 172.16.10.1 tell 172.16.10.10
14:10:56.135779 arp reply 172.16.10.1 is-at 00:0b:6b:35:e7:3a
14:10:56.135783 Assoc Request ()
14:10:56.141114 Beacon (wrap.unixguru.nl) [1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 Mbit] ESS CH: 3, PRIVACY

but according to my ping command, if have a 100% packet loss.

My conclusion:
The 802_11 frame is recieved by my card, but not returned to the IP stack for some reason.

Some stats:
	snowlap# ./80211stats 
	113 rx from wrong bssid
	14 rx discard 'cuz dup
	555 rx discard 'cuz mcast echo
	596 rx w/o wep and privacy on
	9658 rx discard mgt frames
	88027 rx beacon frames
	24 rx element unknown
	88 rx frame chan mismatch
	142 rx discard 'cuz port unauthorized
	43 tx failed 'cuz no defkey
	14 active scans started

	snowlap# ./athstats 
	6 mib overflow interrupts
	229 tx management frames
	659 tx frames discarded prior to association
	11 long on-chip tx retries
	210 tx frames with no ack marked
	256 tx frames with short preamble
	109 rx failed 'cuz of bad CRC
	124 rx failed 'cuz frame too short
	10 rx failed 'cuz of PHY err
	    10 CCK restart
	297 periodic calibrations
	4 rfgain value change
	18107 rate control checks
	2 rate control raised xmit rate
	rssi of last ack: 63
	avg recv rssi: 61
	1141 switched default/rx antenna
	Antenna profile:
	[1] tx      165 rx    60579
	[2] tx      640 rx    39202

What could be wrong? Did I overlook something?

-- 
Regards,

Richard.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051106131916.GO28385>