]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Do not add P2P IEs on P2P disabled interface
authorEdhar, Mahesh Kumar <c_medhar@qti.qualcomm.com>
Tue, 2 Sep 2014 05:03:44 +0000 (10:33 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 2 Sep 2014 08:04:26 +0000 (11:04 +0300)
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>
wpa_supplicant/p2p_supplicant.c

index 58d27cb3d5a7bd77a92d02ab9f9e4965c96cb700..9fc3e6ca448125bc2fb0740816d620ad18803746 100644 (file)
@@ -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)