Patchwork P2P: Allow P2P functionality to be disabled per interface

login
register
mail settings
Submitter Sreenath
Date Aug. 30, 2013, 1:12 p.m.
Message ID <5F8A83CFE238064080EB46F88B8161C1013AA82E@SJEXCHMB09.corp.ad.broadcom.com>
Download mbox | patch
Permalink /patch/271291/
State Not Applicable
Headers show

Comments

Sreenath - Aug. 30, 2013, 1:12 p.m.
Hello Jouni,

Any update on this patch?

Regards,
Sreenath

Patch

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 2c363ec..82d0e81 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -3095,6 +3095,9 @@  int wpas_p2p_init(struct wpa_global *global, struct wpa_supplicant *wpa_s)
        unsigned int r;
        int i;

+       if (wpa_s->conf->p2p_disabled)
+               return 0;
+
        if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_P2P_CAPABLE))
                return 0;