Skip to content
Snippets Groups Projects
Commit e6df13d0 authored by Eneas U de Queiroz's avatar Eneas U de Queiroz Committed by David Bauer
Browse files

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: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
[make ft_key local]
Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
parent 6f787239
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment