From: Yura Date: Tue, 3 Mar 2009 18:03:07 +0200 Subject: [ath9k-devel] Intel 5100, 5300 and 4965AGN clients can't connect in 802.11n mode In-Reply-To: <1236085052.6782.2.camel@jm-desktop> References: <5810696978.20090303135813@ukr.net> <1236085052.6782.2.camel@jm-desktop> Message-ID: <1192533090.20090303180307@ukr.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hello Jouni, Tuesday, March 3, 2009, 2:57:32 PM, you wrote: > Could you please re-test with the current hostapd development git > snapshot (0.7.x, from http://w1.fi/)? It has a bug fix that may affect > HT rate selection especially in HT20 case and that could potentially > explain the types of issues you are reporting. I did. Nothing changed. Here is the hostapd debug log. During that session I connected from windows laptop in N mode and pinged the router from that laptop. Please note the following 2 lines: MGMT (TX callback) ACK mgmt::action cb They appear every 5-8 seconds and exactly at that moment wireless client receives ping reply packets. (ping output looks similar to what i've previously posted in the "Ath9k packets dropping issue" topic) root at asus:~# hostapd -P /var/run/wifi-wlan0.pid /var/run/hostapd-wlan0.conf -dd Configuration file: /var/run/hostapd-wlan0.conf Line 8: DEPRECATED: 'debug' configuration variable is not used anymore Opening raw packet socket for ifindex 0 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf nl80211: Added 802.11b mode based on 802.11g information Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=20 dBm Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=20 dBm Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=20 dBm Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm HT40: control channel: 10 secondary channel: 6 RATE[0] rate=10 flags=0x2 RATE[1] rate=20 flags=0x6 RATE[2] rate=55 flags=0x6 RATE[3] rate=110 flags=0x6 RATE[4] rate=60 flags=0x0 RATE[5] rate=90 flags=0x0 RATE[6] rate=120 flags=0x0 RATE[7] rate=180 flags=0x0 RATE[8] rate=240 flags=0x0 RATE[9] rate=360 flags=0x0 RATE[10] rate=480 flags=0x0 RATE[11] rate=540 flags=0x0 Passive scanning not supported Flushing old station entries Deauthenticate all stations Mode: IEEE 802.11g Channel: 10 Frequency: 2457 MHz Using interface wlan0 with hwaddr 00:1f:f3:c0:f2:80 and ssid 'N7' SSID - hexdump_ascii(len=2): 4e 37 N7 PSK (ASCII passphrase) - hexdump_ascii(len=22): ***** PSK (from passphrase) - hexdump(len=32): ***** WPA: group state machine entering state GTK_INIT (VLAN-ID 0) GMK - hexdump(len=32): [REMOVED] GTK - hexdump(len=16): [REMOVED] WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0) wlan0: Setup of interface done. MGMT (TX callback) ACK STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for our SSID MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb MGMT mgmt::auth authentication: STA=00:16:ea:60:97:9a auth_alg=0 auth_transaction=1 status_code=0 wep=0 New STA wlan0: STA 00:16:ea:60:97:9a IEEE 802.11: authentication OK (open system) wlan0: STA 00:16:ea:60:97:9a MLME: MLME-AUTHENTICATE.indication(00:16:ea:60:97:9a, OPEN_SYSTEM) wlan0: STA 00:16:ea:60:97:9a MLME: MLME-DELETEKEYS.request(00:16:ea:60:97:9a) authentication reply: STA=00:16:ea:60:97:9a auth_alg=0 auth_transaction=2 resp=0 (IE len=0) MGMT (TX callback) ACK mgmt::auth cb wlan0: STA 00:16:ea:60:97:9a IEEE 802.11: authenticated MGMT mgmt::assoc_req association request: STA=00:16:ea:60:97:9a capab_info=0x411 listen_interval=10 WME IE - hexdump(len=7): 00 50 f2 02 00 01 00 Validating WME IE: OUI 00:50:f2 OUI type 2 OUI sub-type 0 version 1 HT: STA 00:16:ea:60:97:9a HT Capabilities Info: 0x083c handle_assoc STA 00:16:ea:60:97:9a - 20 MHz HT, num of 20MHz HT STAs 1 hostapd_ht_operation_update current operation mode=0x0 hostapd_ht_operation_update new operation mode=0x2 changes=1 new AID 1 wlan0: STA 00:16:ea:60:97:9a IEEE 802.11: association OK (aid 1) MGMT (TX callback) ACK mgmt::assoc_resp cb wlan0: STA 00:16:ea:60:97:9a IEEE 802.11: associated (aid 1) wlan0: STA 00:16:ea:60:97:9a MLME: MLME-ASSOCIATE.indication(00:16:ea:60:97:9a) wlan0: STA 00:16:ea:60:97:9a MLME: MLME-DELETEKEYS.request(00:16:ea:60:97:9a) wlan0: STA 00:16:ea:60:97:9a WPA: event 1 notification wlan0: STA 00:16:ea:60:97:9a WPA: start authentication WPA: 00:16:ea:60:97:9a WPA_PTK entering state INITIALIZE wlan0: STA 00:16:ea:60:97:9a IEEE 802.1X: unauthorizing port WPA: 00:16:ea:60:97:9a WPA_PTK_GROUP entering state IDLE WPA: 00:16:ea:60:97:9a WPA_PTK entering state AUTHENTICATION WPA: 00:16:ea:60:97:9a WPA_PTK entering state AUTHENTICATION2 WPA: 00:16:ea:60:97:9a WPA_PTK entering state INITPSK WPA: 00:16:ea:60:97:9a WPA_PTK entering state PTKSTART wlan0: STA 00:16:ea:60:97:9a WPA: sending 1/4 msg of 4-Way Handshake WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0) IEEE 802.1X: 00:16:ea:60:97:9a TX status - version=2 type=3 length=95 - ack=1 IEEE 802.1X: 123 bytes from 00:16:ea:60:97:9a IEEE 802.1X: version=1 type=3 length=119 wlan0: STA 00:16:ea:60:97:9a WPA: received EAPOL-Key frame (2/4 Pairwise) WPA: 00:16:ea:60:97:9a WPA_PTK entering state PTKCALCNEGOTIATING WPA: PTK derivation - A1=00:1f:f3:c0:f2:80 A2=00:16:ea:60:97:9a WPA: PMK - hexdump(len=32): [REMOVED] WPA: PTK - hexdump(len=64): [REMOVED] WPA: 00:16:ea:60:97:9a WPA_PTK entering state PTKCALCNEGOTIATING2 WPA: 00:16:ea:60:97:9a WPA_PTK entering state PTKINITNEGOTIATING wlan0: STA 00:16:ea:60:97:9a WPA: sending 3/4 msg of 4-Way Handshake WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=46 keyidx=1 encr=1) Plaintext EAPOL-Key Key Data - hexdump(len=56): [REMOVED] IEEE 802.1X: 00:16:ea:60:97:9a TX status - version=2 type=3 length=151 - ack=1 IEEE 802.1X: 99 bytes from 00:16:ea:60:97:9a IEEE 802.1X: version=1 type=3 length=95 wlan0: STA 00:16:ea:60:97:9a WPA: received EAPOL-Key frame (4/4 Pairwise) WPA: 00:16:ea:60:97:9a WPA_PTK entering state PTKINITDONE wlan0: STA 00:16:ea:60:97:9a IEEE 802.1X: authorizing port wlan0: STA 00:16:ea:60:97:9a RADIUS: starting accounting session 49A28E7C-00000000 wlan0: STA 00:16:ea:60:97:9a WPA: pairwise key handshake completed (RSN) MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for our SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT mgmt::action wlan0: STA 00:16:ea:60:97:9a IEEE 802.11: handle_action - unknown action category 3 or invalid frame IEEE 802.11: Return unknown Action frame back to sender MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for our SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::proberesp cb STA 00:16:ea:60:97:9a sent probe request for broadcast SSID MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb MGMT (TX callback) ACK mgmt::action cb -- Best regards, Yura mailto:gt at ukr.net