P2P: Fix WSC IE inclusion for P2P disabled case
wpas_wps_in_use() was forcing WPS to be enabled unconditionally if P2P support was included in the build. This is not really the correct behavior for the case when P2P has been disabled at runtime. Change the code here to verify runtime configuration of P2P before forcing WPS to be enabled. This allows WSC IE to be left out from Probe Request frames when scanning for APs without P2P or WPS being in use. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
552310680c
commit
b21ff9cb20
1 changed files with 6 additions and 4 deletions
|
@ -71,11 +71,13 @@ static int wpas_wps_in_use(struct wpa_supplicant *wpa_s,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
if (!wpa_s->global->p2p_disabled && wpa_s->global->p2p) {
|
||||
wpa_s->wps->dev.p2p = 1;
|
||||
if (!wps) {
|
||||
wps = 1;
|
||||
*req_type = WPS_REQ_ENROLLEE_INFO;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
return wps;
|
||||
|
|
Loading…
Reference in a new issue