Browse Source

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>
Edhar, Mahesh Kumar 10 years ago
parent
commit
1c2aa04c96
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wpa_supplicant/p2p_supplicant.c

+ 2 - 0
wpa_supplicant/p2p_supplicant.c

@@ -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)
 		return -1;
+	if (wpa_s->conf->p2p_disabled)
+		return -1;
 	if (wpa_s->global->p2p == NULL)
 		return -1;
 	if (bss == NULL)