aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2022-01-07 17:19:36 -0300
committerDavid Bauer <mail@david-bauer.net>2022-02-19 16:14:52 +0100
commite6df13d0e16dd394ca26a80feeb013234948e875 (patch)
tree51c7773a3147d20e1b653b3bb8b00f3ac320691d /target/linux/ramips
parent6f787239771044ed7eeaf22301c543b699f25cb4 (diff)
downloadupstream-e6df13d0e16dd394ca26a80feeb013234948e875.tar.gz
upstream-e6df13d0e16dd394ca26a80feeb013234948e875.tar.bz2
upstream-e6df13d0e16dd394ca26a80feeb013234948e875.zip
hostapd: fallback to psk when generating r0kh/r1kh
The 80211r r0kh and r1kh defaults are generated from the md5sum of "$mobility_domain/$auth_secret". auth_secret is only set when using EAP authentication, but the default key is used for SAE/PSK as well. In this case, auth_secret is empty, and the default value of the key can be computed from the SSID alone. Fallback to using $key when auth_secret is empty. While at it, rename the variable holding the generated key from 'key' to 'ft_key', to avoid clobbering the PSK. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> [make ft_key local] Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ramips')
0 files changed, 0 insertions, 0 deletions