<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello!<br>I am having problems with my hostapd wireless AP and any help from you people out there would be greatly appreciated! I have done my best to explain the problem and copy and paste what I believe to be relevant debug output.<br><br><b>THE PROBLEM</b><br>I can connect to my wireless network with my laptop and everything works fine, but after a while (&lt;5 minutes) I get disconnected. When I try to reconnect it does not work until I reboot the server/AP. It would probably suffice to just kill the hostapd process correctly and then restart it, but since I am new to the Linux world I don't know how.<br><br><b>THE SETUP</b><br>Server/AP<br>OS version: Ubuntu Server 10.04/Linux 2.6.31-21-generic-pae<br>hostapd version: hostapd v0.6.9<br>Wireless card model in AP: Atheros AR928X Wireless Network adapter<br>Wireless driver: athk9 (came with my Ubuntu installation, I think)<br>MAC-address Wireless card in AP: 00:22:43:66:21:4d<br><br>Laptop/Client<br>Wireless card model in laptop: Intel WiFi link 5300 AGN<br>MAC-address Wireless card in laptop: 00:21:6a:92:1c:36<br><br>Configuration file<br>This is the output of my hostapd.conf: <b>sudo grep -v \# /etc/hostapd/hostapd.conf | grep -v "^$"</b><br><br><b>interface=wlan0<br>bridge=br0<br>driver=nl80211<br>logger_syslog=-1<br>logger_syslog_level=2<br>logger_stdout=-1<br>logger_stdout_level=2<br>dump_file=/tmp/hostapd.dump<br>ctrl_interface=/var/run/hostapd<br>ctrl_interface_group=0<br>ssid=dalvik[dot]no[dash]ip[dot]org<br>hw_mode=g<br>channel=1<br>beacon_int=100<br>dtim_period=2<br>max_num_sta=255<br>rts_threshold=2347<br>fragm_threshold=2346<br>macaddr_acl=0<br>auth_algs=1<br>ignore_broadcast_ssid=0<br>wme_enabled=1<br>wme_ac_bk_cwmin=4<br>wme_ac_bk_cwmax=10<br>wme_ac_bk_aifs=7<br>wme_ac_bk_txop_limit=0<br>wme_ac_bk_acm=0<br>wme_ac_be_aifs=3<br>wme_ac_be_cwmin=4<br>wme_ac_be_cwmax=10<br>wme_ac_be_txop_limit=0<br>wme_ac_be_acm=0<br>wme_ac_vi_aifs=2<br>wme_ac_vi_cwmin=3<br>wme_ac_vi_cwmax=4<br>wme_ac_vi_txop_limit=94<br>wme_ac_vi_acm=0<br>wme_ac_vo_aifs=2<br>wme_ac_vo_cwmin=2<br>wme_ac_vo_cwmax=3<br>wme_ac_vo_txop_limit=47<br>wme_ac_vo_acm=0<br>ieee80211n=1<br>eapol_key_index_workaround=0<br>eap_server=0<br>own_ip_addr=127.0.0.1<br>wpa=2<br>wpa_passphrase=password<br>wpa_key_mgmt=WPA-PSK<br>wpa_pairwise=TKIP<br>rsn_pairwise=CCMP</b><br><br><br><b>INFO FROM DEBUG OUTPUT</b><br>I run hostapd with the following command:<br><br><b>evilannanas@dalvik:~$ sudo hostapd -dd /etc/hostapd/hostapd.conf<br>[sudo] password for evilannanas:</b><br><br><br>hostapd starts and I get some debugging output:<br><br><br><b>Configuration file: /etc/hostapd/hostapd.conf<br>ctrl_interface_group=0<br>Opening raw packet socket for ifindex -1215979532<br>BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)<br>SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf<br>nl80211: Added 802.11b mode based on 802.11g information<br>Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm<br>Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm<br>Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm<br>....<br>RATE[0] rate=10 flags=0x2<br>RATE[1] rate=20 flags=0x6<br>RATE[2] rate=55 flags=0x4<br>RATE[3] rate=110 flags=0x4<br>Passive scanning not supported<br>Flushing old station entries<br>Deauthenticate all stations<br>Mode: IEEE 802.11b&nbsp; Channel: 1&nbsp; Frequency: 2412 MHz<br>Using interface wlan0 with hwaddr 00:22:43:66:21:4d and ssid 'dalvik[dot]no[dash]ip[dot]org'<br>SSID - hexdump_ascii(len=29):<br>&nbsp;&nbsp;&nbsp;&nbsp; 64 61 6c 76 69 6b 5b 64 6f 74 5d 6e 6f 5b 64 61&nbsp;&nbsp; dalvik[dot]no[da<br>&nbsp;&nbsp;&nbsp;&nbsp; 73 68 5d 69 70 5b 64 6f 74 5d 6f 72 67&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sh]ip[dot]org<br>PSK (ASCII passphrase) - hexdump_ascii(len=10):<br>&nbsp;&nbsp;&nbsp;&nbsp; 66 75 70 70 65 6c 6d 75 70 70&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password<br>PSK (from passphrase) - hexdump(len=32): 19 12 6b 2c 40 3a 05 1b 36 dd ab 6d 76 30 0f 57 fb 87 85 ce 1a 32 65 0f 06 00 bc 9e 76 47 ad 72<br>WPA: group state machine entering state GTK_INIT (VLAN-ID 0)<br>GMK - hexdump(len=32): [REMOVED]<br>GTK - hexdump(len=16): [REMOVED]<br>WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)<br>wlan0: Setup of interface done.<br></b><br><br>Everything seems fine so far and I connect my laptop to the AP. It generates the following output:<br><br><b>STA 00:21:6a:92:1c:36 sent probe request for broadcast SSID<br>MGMT (TX callback) ACK<br>mgmt::proberesp cb<br>STA 00:21:6a:92:1c:36 sent probe request for our SSID<br>STA 00:21:6a:92:1c:36 sent probe request for our SSID<br>MGMT (TX callback) ACK<br>mgmt::proberesp cb<br>MGMT (TX callback) ACK<br>mgmt::proberesp cb<br>MGMT<br>mgmt::auth<br>authentication: STA=00:21:6a:92:1c:36 auth_alg=0 auth_transaction=1 status_code=0 wep=0<br>&nbsp; New STA<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.11: authentication OK (open system)<br>wlan0: STA 00:21:6a:92:1c:36 MLME: MLME-AUTHENTICATE.indication(00:21:6a:92:1c:36, OPEN_SYSTEM)<br>wlan0: STA 00:21:6a:92:1c:36 MLME: MLME-DELETEKEYS.request(00:21:6a:92:1c:36)<br>authentication reply: STA=00:21:6a:92:1c:36 auth_alg=0 auth_transaction=2 resp=0 (IE len=0)<br>MGMT (TX callback) ACK<br>mgmt::auth cb<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.11: authenticated<br>MGMT<br>mgmt::assoc_req<br>association request: STA=00:21:6a:92:1c:36 capab_info=0x411 listen_interval=10<br>WME IE - hexdump(len=7): 00 50 f2 02 00 01 00<br>Validating WME IE: OUI 00:50:f2&nbsp; OUI type 2&nbsp; OUI sub-type 0&nbsp; version 1<br>HT: STA 00:21:6a:92:1c:36 HT Capabilities Info: 0x0830<br>handle_assoc STA 00:21:6a:92:1c:36 - 20 MHz HT, num of 20MHz HT STAs 1<br>hostapd_ht_operation_update current operation mode=0x13<br>hostapd_ht_operation_update new operation mode=0x13 changes=0<br>&nbsp; new AID 2<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.11: association OK (aid 2)<br>MGMT (TX callback) ACK<br>mgmt::assoc_resp cb<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.11: associated (aid 2)<br>wlan0: STA 00:21:6a:92:1c:36 MLME: MLME-ASSOCIATE.indication(00:21:6a:92:1c:36)<br>wlan0: STA 00:21:6a:92:1c:36 MLME: MLME-DELETEKEYS.request(00:21:6a:92:1c:36)<br>wlan0: STA 00:21:6a:92:1c:36 WPA: event 1 notification<br>wlan0: STA 00:21:6a:92:1c:36 WPA: start authentication<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state INITIALIZE<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.1X: unauthorizing port<br>WPA: 00:21:6a:92:1c:36 WPA_PTK_GROUP entering state IDLE<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state AUTHENTICATION<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state AUTHENTICATION2<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state INITPSK<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state PTKSTART<br>wlan0: STA 00:21:6a:92:1c:36 WPA: sending 1/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)<br>IEEE 802.1X: 00:21:6a:92:1c:36 TX status - version=2 type=3 length=95 - ack=0<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.1X: did not Ack EAPOL-Key frame (unicast index=79)<br>wlan0: STA 00:21:6a:92:1c:36 WPA: EAPOL-Key timeout<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state PTKSTART<br>wlan0: STA 00:21:6a:92:1c:36 WPA: sending 1/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)<br>IEEE 802.1X: 00:21:6a:92:1c:36 TX status - version=2 type=3 length=95 - ack=1<br>IEEE 802.1X: 123 bytes from 00:21:6a:92:1c:36<br>&nbsp;&nbsp; IEEE 802.1X: version=1 type=3 length=119<br>wlan0: STA 00:21:6a:92:1c:36 WPA: received EAPOL-Key frame (2/4 Pairwise)<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state PTKCALCNEGOTIATING<br>WPA: PTK derivation - A1=00:22:43:66:21:4d A2=00:21:6a:92:1c:36<br>WPA: PMK - hexdump(len=32): 19 12 6b 2c 40 3a 05 1b 36 dd ab 6d 76 30 0f 57 fb 87 85 ce 1a 32 65 0f 06 00 bc 9e 76 47 ad 72<br>WPA: PTK - hexdump(len=64): ad d9 e6 8d b5 07 41 06 8b a0 dc 75 e5 ca 53 9f 72 dd b7 bc 11 8e 4b 26 39 f9 d0 09 c3 46 13 c1 89 13 e7 c9 50 a7 38 8f 96 ad ee 02 b2 f8 92 36 aa e0 ca 0a 1d da 14 18 52 48 2d 02 a6 7f ab 65<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state PTKCALCNEGOTIATING2<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state PTKINITNEGOTIATING<br>wlan0: STA 00:21:6a:92:1c:36 WPA: sending 3/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=46 keyidx=1 encr=1)<br>Plaintext EAPOL-Key Key Data - hexdump(len=56): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 dd 16 00 0f ac 01 01 00 96 ad 0c 20 bc 54 09 a7 fa bf 6d 81 e4 62 ac af dd 00 00 00 00 00 00 00 00 00<br>IEEE 802.1X: 00:21:6a:92:1c:36 TX status - version=2 type=3 length=151 - ack=1<br>IEEE 802.1X: 99 bytes from 00:21:6a:92:1c:36<br>&nbsp;&nbsp; IEEE 802.1X: version=1 type=3 length=95<br>wlan0: STA 00:21:6a:92:1c:36 WPA: received EAPOL-Key frame (4/4 Pairwise)<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state PTKINITDONE<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.1X: authorizing port<br>wlan0: STA 00:21:6a:92:1c:36 RADIUS: starting accounting session 4BEB0D8C-00000001<br>wlan0: STA 00:21:6a:92:1c:36 WPA: pairwise key handshake completed (RSN)<br></b><br><br>Everything works fine, I can connect to the WLAN/LAN and Internet. After a short while, though, my laptop gets disconnected from the wireless network and I&nbsp; am unable to reconnect unless I restart the server/AP running hostapd. I get the following debug output on the AP/server screen, I think it is related to my problem:<br><br><br><b>MGMT<br>mgmt::action<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.11: handle_action - unknown action category 7 or invalid frame<br>IEEE 802.11: Return unknown Action frame back to sender<br>MGMT (TX callback) ACK<br>mgmt::action cb<br>MGMT (TX callback) ACK<br>mgmt::action cb<br>MGMT (TX callback) ACK</b><br><br>... and I also see this message in the log:<br><br><b>hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:21:6a:92:1c:36 reason 2<br>WPA: 00:21:6a:92:1c:36 WPA_PTK_GROUP entering state IDLE<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state DISCONNECTED<br>WPA: 00:21:6a:92:1c:36 WPA_PTK entering state INITIALIZE<br>wlan0: STA 00:21:6a:92:1c:36 IEEE 802.1X: unauthorizing port</b><br><br><br>What does this mean (<b>"unknown action category 7 or invalid frame" /&nbsp; "WPA authenticator requests disconnect: STA 00:21:6a:92:1c:36 reason 2" </b>?) Why do I get disconnected, and why can't I reconnect without restarting my AP? Is there anything wrong with my configuration? Thanks everyone!<br><br>Regards,<br>Gustav                                               <br /><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>