Re: AP mode with SAE/WPA3

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

 



On Thu, Dec 08, 2022 at 02:52:35PM +0100, Heiko Thiery wrote:
> Hi,
> 
> I try to setup an AP using network-manager (NM) as frontend. When
> configuring the NM connection with "wifi-sec.key-mgmt wpa-psk" the AP
> is setup as expected. But when changing this value to
> "wifi-sec.key-mgmt sae" I see the following errors in the
> wpa_supplicant journal (using systemd):
> 
> Dec 08 14:21:06 hthiery wpa_supplicant[489]: Note: nl80211 driver
> interface is not designed to be used with ap_scan=2; this can result
> in connection failures
> Dec 08 14:21:06 hthiery wpa_supplicant[489]: Could not generate WPA IE.
> Dec 08 14:21:06 hthiery wpa_supplicant[489]: WPA initialization failed.
> [...]
> 
> I'm using NM 1.40.6 and wpa_supplicant v2.10.
> 
> I currently have no idea where to look for the problem. If it is a NM,
> wpa_supplicant or kernel/driver problem. Can someone give me a hint or
> know where the problem comes from?

Hi,

first, check what configuration NM is passing to wpa_supplicant:

  # journalctl -u NetworkManager -e | grep "Config: added"
  <info>  [1670927639.1914] Config: added 'ssid' value 'Hotspot'
  <info>  [1670927639.1915] Config: added 'mode' value '2'
  <info>  [1670927639.1915] Config: added 'frequency' value '2462'
  <info>  [1670927639.1915] Config: added 'key_mgmt' value 'SAE'
  <info>  [1670927639.1915] Config: added 'psk' value '<hidden>'
  <info>  [1670927639.1916] Config: added 'proto' value 'RSN'
  <info>  [1670927639.1917] Config: added 'pairwise' value 'CCMP'
  <info>  [1670927639.1917] Config: added 'group' value 'CCMP'
  <info>  [1670927639.1917] Config: added 'ieee80211w' value

Then, try to set up an AP with wpa_supplicant directly using the same
parameters, for example:

  # cat ap.conf 
  ctrl_interface=/var/run/wpa_supplicant
  ap_scan=2
  
  network={
  	ssid="Hotspot"
  	mode=2
  	frequency=2462
  	key_mgmt=SAE
  	psk="12345678"
  	proto=RSN
  	pairwise=CCMP
  	group=CCMP
  	ieee80211w=2
  }

  # wpa_supplicant -i wlan0 -D nl80211 -c ap.conf

and check if the result is the same.

Beniamino

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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