P2P: Do not add P2P IEs on P2P disabled interface
While building Association Request frame IEs we should consider adding P2P IEs only on interface where P2P functionality is enabled. Consider per interface p2p_disabled parameter before adding P2P IEs to complete the checks for this. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
d885a0ba7c
commit
1c2aa04c96
1 changed files with 2 additions and 0 deletions
|
@ -5796,6 +5796,8 @@ int wpas_p2p_assoc_req_ie(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
|
||||||
|
|
||||||
if (wpa_s->global->p2p_disabled)
|
if (wpa_s->global->p2p_disabled)
|
||||||
return -1;
|
return -1;
|
||||||
|
if (wpa_s->conf->p2p_disabled)
|
||||||
|
return -1;
|
||||||
if (wpa_s->global->p2p == NULL)
|
if (wpa_s->global->p2p == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
if (bss == NULL)
|
if (bss == NULL)
|
||||||
|
|
Loading…
Reference in a new issue