From: Dmitry Shmidt Date: Sun, 18 Sep 2011 22:18:22 +0000 (-0700) Subject: net: wireless: bcmdhd: Enable P2P events only for P2P FW X-Git-Tag: firefly_0821_release~7613^2~300 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9897481d978f20cda493e521f4aed3b6282c3ef3;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Enable P2P events only for P2P FW Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index 42f3528dba88..6a69b2bff76a 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -3001,12 +3001,14 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) /* enable dongle roaming event */ setbit(eventmask, WLC_E_ROAM); #ifdef WL_CFG80211 - setbit(eventmask, WLC_E_ACTION_FRAME_RX); - setbit(eventmask, WLC_E_ACTION_FRAME_COMPLETE); - setbit(eventmask, WLC_E_ACTION_FRAME_OFF_CHAN_COMPLETE); - setbit(eventmask, WLC_E_P2P_PROBREQ_MSG); - setbit(eventmask, WLC_E_P2P_DISC_LISTEN_COMPLETE); setbit(eventmask, WLC_E_ESCAN_RESULT); + if ((dhd->op_mode & WFD_MASK) == WFD_MASK) { + setbit(eventmask, WLC_E_ACTION_FRAME_RX); + setbit(eventmask, WLC_E_ACTION_FRAME_COMPLETE); + setbit(eventmask, WLC_E_ACTION_FRAME_OFF_CHAN_COMPLETE); + setbit(eventmask, WLC_E_P2P_PROBREQ_MSG); + setbit(eventmask, WLC_E_P2P_DISC_LISTEN_COMPLETE); + } #endif /* WL_CFG80211 */ /* Write updated Event mask */