Running hostapd on Pi 4, slow to connect, many associated/disassociated messages

cl at isbd.net cl at isbd.net
Wed Nov 2 08:45:30 PDT 2022


I'm new to hostapd, I'm running it on a Raspberry Pi in order to use
it with a WiFi client that needs special routing (out from the Pi's wired
connection). 

I have installed hostapd and followed the configuration provided on the
Pi official web site. It's hostapd v2.9 from the Pi repository.

I can connect to it but it's very slow to connect and, if the signal
isn't too strong it seems to drop the connection rather frequently.

When I make a connection attempt I see the following in syslog on the
Pi:-

    Nov  2 15:11:50 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:11:50 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:11:50 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:11:52 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: disassociated
    Nov  2 15:12:42 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:12:42 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:12:43 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:12:49 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: deauthenticated due to local deauth request
    Nov  2 15:12:52 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: disassociated
    Nov  2 15:12:52 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: disassociated
    Nov  2 15:12:52 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: disassociated
    Nov  2 15:13:08 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:13:08 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa IEEE 802.11: associated
    Nov  2 15:13:08 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa RADIUS: starting accounting session CF1C7F68FFFE3938
    Nov  2 15:13:08 raspberrypi hostapd: wlan0: STA 00:28:f8:3d:3b:aa WPA: pairwise key handshake completed (RSN)
    Nov  2 15:13:08 raspberrypi dnsmasq-dhcp[541]: DHCPREQUEST(wlan0) 192.168.13.77 00:28:f8:3d:3b:aa 
    Nov  2 15:13:08 raspberrypi dnsmasq-dhcp[541]: DHCPACK(wlan0) 192.168.13.77 00:28:f8:3d:3b:aa t470

So it took well over a minute to connect.  This is with the Pi and the client about a meter
apart.


My hostapd.conf file is:

    country_code=GB
    interface=wlan0
    ssid=odinpi
    hw_mode=g
    channel=7
    macaddr_acl=0
    auth_algs=1
    ignore_broadcast_ssid=0
    wpa=2
    wpa_passphrase=XXXXXXXX
    wpa_key_mgmt=WPA-PSK
    wpa_pairwise=TKIP
    rsn_pairwise=CCMP



Surely it should work faster than this shouldn't it?  Have I got something misconfigured and/or
have I missed something important?

Thanks.

-- 
Chris Green



More information about the Hostap mailing list