<div dir="ltr">Hi all,<div><br>I posted this yesterday but did not provide enough information. I've been banging my head for days trying to get this working and have tried every reasonable setting in hostapd.conf.</div>
<div><br></div><div>I'm using hostapd 2.2 (2.1 before yesterday), TP-Link TL-WN822N USB wifi, Ubuntu 14.04 Server up-to-date.</div><div><br></div><div>Problem: Apple devices (iPad/iPhone) do not connect, but Windows 7 works great.</div>
<div><br></div><div>If anyone has successfully gotten an Apple device to connect to hostapd, please let me know what settings/hardware you're using so I can replicate it.</div><div><br></div><div>This is what happens when I try to connect with my iPhone 4S:</div>
<div><br></div><div><div># ./hostapd /etc/hostapd/hostapd.conf</div><div>Configuration file: /etc/hostapd/hostapd.conf</div><div>wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE</div><div>Using interface wlan0 with hwaddr c0:4a:00:1c:99:c7 and ssid "rwtest1"</div>
<div>wlan0: interface state COUNTRY_UPDATE->ENABLED</div><div>wlan0: AP-ENABLED</div><div>wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: authenticated</div><div>wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: associated (aid 1)</div>
<div>wlan0: AP-STA-CONNECTED d0:23:db:45:7a:90</div><div>wlan0: STA d0:23:db:45:7a:90 RADIUS: starting accounting session 53908690-00000000</div><div>wlan0: STA d0:23:db:45:7a:90 WPA: pairwise key handshake completed (RSN)</div>
<div>wlan0: AP-STA-DISCONNECTED d0:23:db:45:7a:90</div><div>wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: disassociated</div><div>wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)</div>
</div><div><br></div><div>--</div><div><br></div><div>As I said, Windows 7 connects beautifully.<br></div><div><br></div><div>Here's hostapd.conf - trying to keep it minimal for now:</div><div><br></div><div><div>interface=wlan0</div>
<div>driver=nl80211</div><div>ssid=rwtest1</div><div>country_code=CA</div><div>hw_mode=g</div><div>channel=1</div><div>wpa=2</div><div>wpa_passphrase=1212121212</div><div>wpa_key_mgmt=WPA-PSK</div><div>wpa_pairwise=TKIP CCMP</div>
<div>rsn_pairwise=CCMP</div><div>auth_algs=1</div></div><div><br></div><div>--</div><div><br></div><div>lsusb:</div><div><div>[ 84.562361] rtl8192cu: MAC auto ON okay!</div><div>[ 85.225975] rtl8192cu: Tx queue select: 0x05</div>
<div>[ 86.742890] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready</div><div>[ 86.743969] cfg80211: Calling CRDA for country: CA</div><div>[ 86.750829] cfg80211: Regulatory domain changed to country: CA</div><div>
[ 86.750834] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)</div><div>[ 86.750837] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)</div><div>[ 86.750839] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)</div>
<div>[ 86.750841] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)</div><div>[ 86.750843] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)</div><div>[ 86.750844] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)</div>
<div>[ 86.773919] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready</div></div><div><br></div><div>lsmod:</div><div><div># lsmod | grep 802</div><div>mac80211 626489 3 rtl_usb,rtlwifi,rtl8192cu</div>
<div>cfg80211 484040 2 mac80211,rtlwifi</div></div><div><br></div><div><br></div><div>I am not against buying new hardware to get this working, if that's the problem. I just can't think of any other reason this isn't working.</div>
<div><br></div><div>Any help whatsoever is appreciated, including a summary of your config/hardware if you're able to get Apple devices working with hostapd.</div><div><br></div><div>Thanks!</div></div>