hostapd with Apple devices

les paul rw81junk at gmail.com
Thu Jun 5 11:08:26 EDT 2014


Hi all,

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.

I'm using hostapd 2.2 (2.1 before yesterday), TP-Link TL-WN822N USB wifi,
Ubuntu 14.04 Server up-to-date.

Problem: Apple devices (iPad/iPhone) do not connect, but Windows 7 works
great.

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.

This is what happens when I try to connect with my iPhone 4S:

# ./hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Using interface wlan0 with hwaddr c0:4a:00:1c:99:c7 and ssid "rwtest1"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: authenticated
wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED d0:23:db:45:7a:90
wlan0: STA d0:23:db:45:7a:90 RADIUS: starting accounting session
53908690-00000000
wlan0: STA d0:23:db:45:7a:90 WPA: pairwise key handshake completed (RSN)
wlan0: AP-STA-DISCONNECTED d0:23:db:45:7a:90
wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: disassociated
wlan0: STA d0:23:db:45:7a:90 IEEE 802.11: deauthenticated due to inactivity
(timer DEAUTH/REMOVE)

--

As I said, Windows 7 connects beautifully.

Here's hostapd.conf - trying to keep it minimal for now:

interface=wlan0
driver=nl80211
ssid=rwtest1
country_code=CA
hw_mode=g
channel=1
wpa=2
wpa_passphrase=1212121212
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
auth_algs=1

--

lsusb:
[   84.562361] rtl8192cu: MAC auto ON okay!
[   85.225975] rtl8192cu: Tx queue select: 0x05
[   86.742890] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   86.743969] cfg80211: Calling CRDA for country: CA
[   86.750829] cfg80211: Regulatory domain changed to country: CA
[   86.750834] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[   86.750837] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300
mBi, 2700 mBm)
[   86.750839] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300
mBi, 1700 mBm)
[   86.750841] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300
mBi, 2000 mBm)
[   86.750843] cfg80211:   (5490000 KHz - 5710000 KHz @ 40000 KHz), (300
mBi, 2000 mBm)
[   86.750844] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300
mBi, 3000 mBm)
[   86.773919] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

lsmod:
# lsmod | grep 802
mac80211              626489  3 rtl_usb,rtlwifi,rtl8192cu
cfg80211              484040  2 mac80211,rtlwifi


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.

Any help whatsoever is appreciated, including a summary of your
config/hardware if you're able to get Apple devices working with hostapd.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140605/724f87fc/attachment-0001.htm>


More information about the HostAP mailing list