Hostapd working with unencrypted network, but not with encryption

Morten W. Petersen morphex at gmail.com
Thu Dec 22 04:18:01 PST 2016


Ah, excellent.  I set HT capabilities to an empty string and now it works.

Thanks! :)

-Morten

On Thu, Dec 22, 2016 at 9:44 AM, Guan Xin <guanx.bac at gmail.com> wrote:
> IEEE802.11n is OFF but HT is ON, which is abnormal. First try with a
> minimal hostapd.conf instead of a complex one like this.
>
> Good luck!
>
> On Thu, Dec 22, 2016 at 12:00 AM, Morten W. Petersen <morphex at gmail.com> wrote:
>> Hi there.
>>
>> I'm running hostapd on Raspbian, and can't seem to quite figure out
>> how to get authentication working.
>>
>> When I setup hostapd to run an unencrypted network, things are fine,
>> but when I set wpa=2, wpa=1 - the clients accessing the AP show an
>> "authentication problem".
>>
>> The output from running Hostapd is:
>>
>> Config dir: /tmp/create_ap.wlan0.conf.J6hbQmWF
>> PID: 6864
>> Sharing Internet using method: nat
>> hostapd command-line interface: hostapd_cli -p
>> /tmp/create_ap.wlan0.conf.J6hbQmWF/hostapd_ctrl
>> Configuration file: /tmp/create_ap.wlan0.conf.J6hbQmWF/hostapd.conf
>> drv->ifindex=3
>> l2_sock_recv==l2_sock_xmit=0x0x80656f70
>> wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
>> +rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
>> rtl871x_set_key_ops
>> rtl871x_set_key_ops
>> rtl871x_set_key_ops
>> rtl871x_set_key_ops
>> Using interface wlan0 with hwaddr 48:02:2a:ee:d1:ce and ssid "NEIN"
>> rtl871x_set_wps_assoc_resp_ie
>> rtl871x_set_wps_beacon_ie
>> rtl871x_set_wps_probe_resp_ie
>> rtl871x_set_beacon_ops
>> rtl871x_set_hidden_ssid_ops
>> ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
>> rtl871x_set_key_ops
>> wlan0: interface state COUNTRY_UPDATE->ENABLED
>> wlan0: AP-ENABLED
>> ^C
>> +rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=3
>> rtl871x_set_key_ops
>> rtl871x_set_key_ops
>> rtl871x_set_key_ops
>> rtl871x_set_key_ops
>> Doing cleanup.. ELOOP: remaining socket: sock=7 eloop_data=0x80656fe0
>> user_data=(nil) handler=0x7f607b28
>> done
>>
>> The configuration is
>>
>> CHANNEL=default
>> GATEWAY=192.168.12.1
>> WPA_VERSION=2
>> ETC_HOSTS=0
>> DHCP_DNS=192.168.12.1
>> NO_DNS=0
>> HIDDEN=0
>> MAC_FILTER=0
>> MAC_FILTER_ACCEPT=/etc/hostapd/hostapd.accept
>> ISOLATE_CLIENTS=0
>> SHARE_METHOD=nat
>> IEEE80211N=0
>> IEEE80211AC=0
>> HT_CAPAB=[HT40+]
>> VHT_CAPAB=
>> DRIVER=rtl871xdrv
>> NO_VIRT=1
>> COUNTRY=NO
>> FREQ_BAND=2.4
>> NEW_MACADDR=
>> DAEMONIZE=0
>> NO_HAVEGED=0
>> WIFI_IFACE=wlan0
>> INTERNET_IFACE=eth0
>> SSID=NEIN
>> PASSPHRASE="AHAHAHAHA"
>> USE_PSK=0
>>
>> And I'm running Debian package hostapd version
>>
>> hostapd v2.3 for Realtek rtl871xdrv
>> User space daemon for IEEE 802.11 AP management,
>> IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
>> Copyright (c) 2002-2014, Jouni Malinen <j at w1.fi> and contributors
>>
>> patched with
>>
>> https://github.com/pritambaral/hostapd-rtl871xdrv/tree/hostapd_2_3
>>
>> Regards,
>>
>> Morten
>>
>> --
>> Videos at https://www.youtube.com/user/TheBlogologue
>> Twittering at http://twitter.com/blogologue
>> Blogging at http://blogologue.com
>> Playing music at https://soundcloud.com/morten-w-petersen
>> Also playing music and podcasting here:
>> http://www.mixcloud.com/morten-w-petersen/
>> On Google+ here https://plus.google.com/107781930037068750156
>> On Instagram at https://instagram.com/morphexx/
>>
>> _______________________________________________
>> Hostap mailing list
>> Hostap at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/hostap



-- 
Videos at https://www.youtube.com/user/TheBlogologue
Twittering at http://twitter.com/blogologue
Blogging at http://blogologue.com
Playing music at https://soundcloud.com/morten-w-petersen
Also playing music and podcasting here:
http://www.mixcloud.com/morten-w-petersen/
On Google+ here https://plus.google.com/107781930037068750156
On Instagram at https://instagram.com/morphexx/



More information about the Hostap mailing list