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>
This commit is contained in:
parent
ef39ac497e
commit
c7cc80fbc8
1 changed files with 2 additions and 0 deletions
|
@ -751,6 +751,8 @@ int wpas_dpp_auth_init(struct wpa_supplicant *wpa_s, const char *cmd)
|
||||||
wpa_s->dpp_netrole = DPP_NETROLE_CONFIGURATOR;
|
wpa_s->dpp_netrole = DPP_NETROLE_CONFIGURATOR;
|
||||||
else
|
else
|
||||||
wpa_s->dpp_netrole = DPP_NETROLE_STA;
|
wpa_s->dpp_netrole = DPP_NETROLE_STA;
|
||||||
|
} else {
|
||||||
|
wpa_s->dpp_netrole = DPP_NETROLE_STA;
|
||||||
}
|
}
|
||||||
|
|
||||||
pos = os_strstr(cmd, " neg_freq=");
|
pos = os_strstr(cmd, " neg_freq=");
|
||||||
|
|
Loading…
Reference in a new issue