RSN Information wrongly populated in 3/4 Handshake message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I'm trying to setup a WiFi Access Point with a Raspberry Pi 3B+ having 802.11w enabled.
Kernel version: Linux efb-ap-0 4.19.66-Re4son-v7+ #1 SMP Sun Aug 18 22:25:39 AEST 2019 armv7l GNU/Linux
Driver: brcmfmac
hostapd (Deb package): 2:2.9-1 armel

1°) Problem 1 (hostapd.conf documentation issue):
If we just set the ieee80211w parameter in hostapd configuration file, hostapd fails to initialize with error "Failed to set beacon parameters".
I guess I solved this by also configuration wpa_key_mgmt value to WPA-PSK-SHA256 (as documented in wpa_supplicant.conf documentation, that explains that both parameters shall be set). Wouldn't it be needed to provide similar 
information on hostapd.conf documentation ?

2°) Problem 2 (hostapd bug ?):
During the 4-Way Handshake, wpa_supplicant immediatly disconnects at the 3/4 msg, with following logs:
wlan0: WPA: IE in 3/4 msg does not match with IE in Beacon/ProbeResp (src=b8:27:eb:3b:3f:0e)
WPA: RSN IE in Beacon/ProbeResp - hexdump(len=28): 30 1a 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 06 c0 00 00 00 00 0f ac 06
WPA: RSN IE in 3/4 msg - hexdump(len=26): 30 18 01 00 00 0f ac 04 01 00 00 0f ac 04 02 00 00 0f ac 02 00 0f ac 06 c0 00

Comparing 3/4 msg hexdump and Beacon hexdump via Wireshark shows that the Beacon contains the following additional fields that are not in the 3/4 msg: PMKID Count (0x00 00)+ PMKID List + Group Management Cipher Suite 
(0x00 0f ac 06).
Why is the 3/4 msg not matching the Beacon ? Is this an issue in hostapd ? in driver ? in hostapd<->driver communication ?

Thanks for any information about that.

PS:
Here is the hostapd.conf I used:
ctrl_interface=/var/run/hostapd
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
auth_algs=1

wpa_pairwise=CCMP
rsn_pairwise=CCMP
wpa=2

hw_mode=g
ieee80211w=2

ssid=XXXXXXXXXX
channel=1

wpa_key_mgmt=WPA-PSK-SHA256
wpa_passphrase=XXXXXXXXXX

Here is the wpa_supplicant.conf I used:

ctrl_interface=DIR=/var/run/
network={
       ssid="XXXXXXXX"
       proto=RSN
       scan_ssid=1
       key_mgmt=WPA-PSK-SHA256
       pairwise=CCMP
       psk="XXXXXXXX"
       ieee80211w=2
       }



_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux