hostapd with Apple devices

Krishna Chaitanya chaitanya.mgit at gmail.com
Fri Jun 6 02:31:12 EDT 2014


On Thu, Jun 5, 2014 at 8:38 PM, les paul <rw81junk at gmail.com> wrote:
>
> 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)

Can you share the time after which connection disconnects? (run
hostapd with -t option for timestamps)
Is the keepalive triggered from hostapd/Apple device/
If you keep some ping running, do you still see the issue?
Can you capture the sniffer trace when the issue occurs?

When "probes" are used for keepalive Some STA/AP's do not consider
then for resetting inactivity timer, and can cause the disconnection.

Instead if we use "qos null data" for keepalive we will see that the connection
remains active.


More information about the HostAP mailing list