brcmfmac: Check if firmware supports p2p
authorPontus Fuchs <pontusf@broadcom.com>
Wed, 10 Jun 2015 22:12:17 +0000 (00:12 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2015 09:55:19 +0000 (12:55 +0300)
Add a feature flag to reflect the firmware's p2p capability.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Pontus Fuchs <pontusf@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/feature.c
drivers/net/wireless/brcm80211/brcmfmac/feature.h

index 2c5fad3a3aa22523e57dfb97d2d0110d7fbfe820..1e94e94e01dc91c829e45f2efd16559e494e086f 100644 (file)
@@ -129,6 +129,7 @@ void brcmf_feat_attach(struct brcmf_pub *drvr)
                brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_WOWL, "wowl");
        if (drvr->bus_if->chip != BRCM_CC_43362_CHIP_ID)
                brcmf_feat_iovar_int_set(ifp, BRCMF_FEAT_MBSS, "mbss", 0);
+       brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_P2P, "p2p");
 
        /* set chip related quirks */
        switch (drvr->bus_if->chip) {
index 546962525cd2a1a302bdf43667b894176fbf4a40..6b381f799f228b5cb2e6b0f62c2556b7747a7e3d 100644 (file)
  * MCHAN: multi-channel for concurrent P2P.
  * PNO: preferred network offload.
  * WOWL: Wake-On-WLAN.
+ * P2P: peer-to-peer
  */
 #define BRCMF_FEAT_LIST \
        BRCMF_FEAT_DEF(MBSS) \
        BRCMF_FEAT_DEF(MCHAN) \
        BRCMF_FEAT_DEF(PNO) \
-       BRCMF_FEAT_DEF(WOWL)
+       BRCMF_FEAT_DEF(WOWL) \
+       BRCMF_FEAT_DEF(P2P)
 /*
  * Quirks:
  *