]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Make it possible to use PSKs loaded from the PSK file
authorTomasz Jankowski <tomasz.jankowski@plume.com>
Mon, 10 Feb 2020 11:49:33 +0000 (12:49 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 15 Feb 2020 15:28:00 +0000 (17:28 +0200)
commitfde8e7946304569292c5d520d76371291cc4f88c
tree6ef6fa5fdab9c7969d59e17ece33762866a10bba
parentb1977a652dffa4e4f6f01e93dac59f8f29f17b14
WPS: Make it possible to use PSKs loaded from the PSK file

By default, when configuration file set wpa_psk_file, hostapd generated
a random PSK for each Enrollee provisioned using WPS and appended that
PSK to wpa_psk_file.

Changes that behavior by adding a new step. WPS will first try to use a
PSK from wpa_psk_file. It will only try PSKs with wps=1 tag.
Additionally it'll try to match enrollee's MAC address (if provided). If
it fails to find an appropriate PSK, it falls back to generating a new
PSK.

Signed-off-by: Tomasz Jankowski <tomasz.jankowski@plume.com>
hostapd/hostapd.wpa_psk
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/wps_hostapd.c
src/wps/wps.h
src/wps/wps_registrar.c