]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Reset DPP_AUTH_INIT netrole back to STA by default
authorJouni Malinen <jouni@codeaurora.org>
Tue, 11 Feb 2020 04:33:24 +0000 (06:33 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Tue, 11 Feb 2020 04:33:24 +0000 (06:33 +0200)
commitc7cc80fbc8f917f239fbc6280b1e4dbe96c8372d
tree3f013a900c39667ae2559d1d04afe8cee02e5afa
parentef39ac497ec33fa14d7630e70939e1ecddaf5515
DPP: Reset DPP_AUTH_INIT netrole back to STA by default

Previously DPP_AUTH_INIT command update wpa_s->dpp_netrole only if the
netrole parameter was included. This could leave AP or configurator
network in place for the next DPP_AUTH_INIT command. This would be
unexpected behavior, so reset wpa_s->dpp_netrole back to the
DPP_NETROLE_STA default if no explicit netrole parameter is included.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/dpp_supplicant.c