immortalwrt/package
Leon M. Busch-George ae4a8f858e
hostapd: always use sae_password for mesh/SAE auth
This patch fixes a corner case when using passwords that are exactly 64
characters in length with mesh mode or passwords longer than 63 characters
with SAE because 'psk' is used instead of 'sae_password'.
SAE is obligatory for 802.11s (mesh point).

The 'psk' option for hostapd is suited for WPA2 and enforces length
restrictions on passwords. Values of 64 characters are treated as PMKs.
With SAE, PMKs are always generated during the handshake and there are no
length restrictions.
The 'sae_password' option is more suited for SAE and should be used
instead.

Before this patch, the 'sae_password' option is only used with mesh mode
passwords that are not 64 characters long.
As a consequence:
- mesh passwords can't be 64 characters in length
- SAE only works with passwords with lengths >8 and <=63 (due to psk
  limitation).

Fix this by always using 'sae_password' with SAE/mesh and applying the PMK
differentiation only when PSK is used.

Fixes: #11324
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
[ improve commit description ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit ae751535de)
2023-03-05 10:49:41 +08:00
..
base-files ImmortalWrt v21.02.4: revert to branch defaults 2023-02-14 05:59:11 +08:00
boot ramips: jcg q20: add lzma-loader and pb-boot variants 2023-03-01 08:28:22 +08:00
devel Merge Official Source 2021-04-12 02:22:36 +08:00
emortal default-settings: drop outdated banner hack 2023-02-23 11:55:55 +08:00
firmware license: re-license Project ImmortalWrt under GPL-2.0-only 2022-12-24 10:44:52 +08:00
kernel i40e: bump to 2.22.18 2023-03-01 12:59:11 +08:00
libs openssl: bump to 1.1.1t 2023-02-12 04:55:07 +08:00
network hostapd: always use sae_password for mesh/SAE auth 2023-03-05 10:49:41 +08:00
system Merge Official Source 2023-01-07 16:35:05 +08:00
utils packages: nvram: add NVRAM quirks for bcm53xx target 2022-12-11 09:27:56 +08:00
Makefile build: fix opkg install step for large package selection 2021-12-31 17:55:29 +01:00