immortalwrt/package/network/services
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
..
dnsmasq Merge Official Source 2022-12-27 12:41:52 +08:00
dropbear dropbear: only bind lan by default 2021-06-15 19:20:14 +08:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: always use sae_password for mesh/SAE auth 2023-03-05 10:49:41 +08:00
igmpproxy igmpproxy: remove some bashism 2020-06-23 20:00:16 +02:00
ipset-dns base-files: move /tmp/resolv.conf.auto to /tmp/resolv.conf.d/ 2020-01-07 15:36:03 +02:00
lldpd lldpd: fix autoreconf failure 2020-12-09 12:36:40 +01:00
odhcpd odhcpd: fix invalid DHCPv6 ADVERTSIE with small configured leasetime (FS#3935) 2021-07-19 13:26:46 +02:00
omcproxy omcproxy: define configuration file 2019-02-27 10:26:14 +01:00
ppp Merge Official Source 2021-03-31 00:22:15 +08:00
relayd relayd: bump to version 2020-04-25 2020-04-26 13:00:36 +01:00
shellsync ppp: add shellsync 2020-03-24 21:25:32 +08:00
uhttpd package: fix cmake packages build with ninja 2022-05-18 12:09:41 +08:00
umdns umdns: add missing syscalls to seccomp filter 2021-04-18 12:05:12 +02:00