Hi folks,
I’m going to setup a WiFi Accesspoint with a opensuse 13.2 installation and a Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] and hostapd out of the repository.
What I did is configuring everything according to the config files, but once configuring it with WPA or WPA2 my Android and iOS mobiles refuses to attach with authentication error.
Once I set the AP open, my Android device is able to connect, but will disconnect and re-connect after a few seconds, whilst the iOS mobile says unable to join the network.
Coming back to the WPA/WPA2 configuration (this is what I want to use, of course), I have the following configuration active:
/etc/hostapd.conf:
interface=wlp0s29u1u3
driver=nl80211
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid={MY_SSID}
hw_mode=g
channel=9
macaddr_acl=0
wpa=2
wpa_psk={MY_PASS_KEY}
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
For DHCP I activated dnsmasq:
/etc/dnsmasq.conf
interface=lo,wlp0s29u1u3
no-dhcp-interface=lo
dhcp-range=10.10.10.100,10.10.10.254,12h
When trying to establish the connection (equal which device) I’m getting this output in the syslog:
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.11: authentication OK (open system)
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} MLME: MLME-AUTHENTICATE.indication({MAC-Address of Android Device}, OPEN_SYSTEM)
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} MLME: MLME-DELETEKEYS.request({MAC-Address of Android Device})
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.11: authenticated
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.11: association OK (aid 1)
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.11: associated (aid 1)
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} MLME: MLME-ASSOCIATE.indication({MAC-Address of Android Device})
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} MLME: MLME-DELETEKEYS.request({MAC-Address of Android Device})
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: event 1 notification
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: start authentication
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.1X: unauthorizing port
Jun 2 14:52:36 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: sending 1/4 msg of 4-Way Handshake
Jun 2 14:52:37 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: EAPOL-Key timeout
Jun 2 14:52:37 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: sending 1/4 msg of 4-Way Handshake
Jun 2 14:52:38 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: EAPOL-Key timeout
Jun 2 14:52:38 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: sending 1/4 msg of 4-Way Handshake
Jun 2 14:52:39 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: EAPOL-Key timeout
Jun 2 14:52:39 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: sending 1/4 msg of 4-Way Handshake
Jun 2 14:52:40 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: EAPOL-Key timeout
Jun 2 14:52:40 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: PTKSTART: Retry limit 4 reached
Jun 2 14:52:40 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} WPA: event 3 notification
Jun 2 14:52:40 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.1X: unauthorizing port
Jun 2 14:52:40 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} MLME: MLME-DEAUTHENTICATE.indication({MAC-Address of Android Device}, 2)
Jun 2 14:52:40 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} MLME: MLME-DELETEKEYS.request({MAC-Address of Android Device})
Jun 2 14:52:45 linux-12dc hostapd: wlp0s29u1u3: STA {MAC-Address of Android Device} IEEE 802.11: deauthenticated due to local deauth request
Any hints?