From: Kevin Mitchell Date: Sun, 5 Oct 2008 16:35:08 -0700 Subject: [ath9k-devel] Dlink DIR-655 firmware upgrade broke 11n In-Reply-To: <0BC6C966-534D-495D-85CF-82482CAE8B60@atheros.com> References: <1ecf80920810030453r675afa14ga157cc850d42ed62@mail.gmail.com> <0BC6C966-534D-495D-85CF-82482CAE8B60@atheros.com> Message-ID: <1ecf80920810051635y40b01d17v6d5000f55902bba1@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org > Which WLAN card do you use in the client? Which kernel/driver version? Sorry, that was sent a little too early in the morning for me. Right now I am running the latest wireless-testing from git. This also seems to occur with older 2.6.27 (both mainline and wireless testing) as well as 2.6.24 augmented with compat-wireless. My client is a Lenovo T60 with the AR5518 chip in it: $lspci -vvvn 03:00.0 0280: 168c:0024 (rev 01) Subsystem: 168c:0033 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR+ Kernel modules: ath9k, ath_pci $lspci -vvv 03:00.0 Network controller: Atheros Communications Inc. AR5418 802.11abgn Wireless PCI Express Adapter (rev 01) Subsystem: Atheros Communications Inc. Device 0033 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR+ Kernel modules: ath9k, ath_pci > That's fine in the context of clearing keys. Does 'dmesg' output show any > messages when you try to connect with the AP? In fact it shows this rather interesting Warning/call trace:http://pastebin.com/d350e74a7 > The driver seems to indicate > a successful association, but none of the WPA 4-way handshake messages > are shown in wpa_supplicant debug for some reason. I should have been more specific, I does infact associate very briefly, but it de-associates almost immediately. No 4-way handshake and certainly no ip address from dhcp. Ok, all of that said, after removing and reprobing the ath9k module a few times, I can associate and get a functioning ip address when the router is in 11n only mode. My router configuration page does say that I'm using 11n, but only at 54Mbps: SSID MAC Address IP Address Mode Rate (Mbps) Signal (%) hendecagon 00197E4109C1 192.168.1.102 802.11n (2.4GHz) 52 66 Here is the updated wpa_supplicant log: http://pastebin.com/m240ba17f. This is the current output from dmesg (with successfuly, but low rate association). [ 451.120264] cfg80211: Calling CRDA to update world regulatory domain [ 451.135051] ath9k: 0.1 [ 451.135208] ath9k 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 451.135291] ath9k 0000:03:00.0: setting latency timer to 64 [ 451.270732] phy0: Selected rate control algorithm 'ath9k_rate_control' [ 451.312642] Registered led device: ath9k-phy0:radio [ 451.312682] Registered led device: ath9k-phy0:assoc [ 451.312711] Registered led device: ath9k-phy0:tx [ 451.312740] Registered led device: ath9k-phy0:rx [ 451.313326] phy0: Atheros 5416: mem=0xffffc200047e0000, irq=17 [ 455.357684] wlan0: direct probe to AP 00:1b:11:68:c9:f9 try 1 [ 455.362015] wlan0 direct probe responded [ 455.362029] wlan0: authenticate with AP 00:1b:11:68:c9:f9 [ 455.364463] wlan0: authenticated [ 455.364472] wlan0: associate with AP 00:1b:11:68:c9:f9 [ 455.367604] wlan0: RX AssocResp from 00:1b:11:68:c9:f9 (capab=0x431 status=0 aid=1) [ 455.367610] wlan0: associated Now, when I run iperf dmesg gives in addition: [ 819.303733] ath_tx_prepare: TX queue: 1 is full, depth: 492 (repeats many times) Iperf also gives a really slow speed: ------------------------------------------------------------ Client connecting to 192.168.1.100, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 192.168.1.102 port 56349 connected with 192.168.1.100 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.2 sec 8.62 MBytes 7.10 Mbits/sec I am able to get these successful low rate associations on repeated removals/reprobes of the module on the client. Now, however after robooting the router, I'm back to square one. I am getting the same call trace from dmesg and cannot associate. Kevin