From 1c2aa04c96626f5b000d167bb5274a8c39b7dac2 Mon Sep 17 00:00:00 2001 From: "Edhar, Mahesh Kumar" Date: Tue, 2 Sep 2014 10:33:44 +0530 Subject: [PATCH] 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 --- wpa_supplicant/p2p_supplicant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 58d27cb3d..9fc3e6ca4 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/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)