Commit 2b560d71 authored by Pontus Fuchs's avatar Pontus Fuchs Committed by Kalle Valo

brcmfmac: Check if firmware supports p2p

Add a feature flag to reflect the firmware's p2p capability.
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: default avatarHante Meuleman <meuleman@broadcom.com>
Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Signed-off-by: default avatarPontus Fuchs <pontusf@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 8d012374
...@@ -129,6 +129,7 @@ void brcmf_feat_attach(struct brcmf_pub *drvr) ...@@ -129,6 +129,7 @@ void brcmf_feat_attach(struct brcmf_pub *drvr)
brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_WOWL, "wowl"); brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_WOWL, "wowl");
if (drvr->bus_if->chip != BRCM_CC_43362_CHIP_ID) 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_set(ifp, BRCMF_FEAT_MBSS, "mbss", 0);
brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_P2P, "p2p");
/* set chip related quirks */ /* set chip related quirks */
switch (drvr->bus_if->chip) { switch (drvr->bus_if->chip) {
......
...@@ -23,12 +23,14 @@ ...@@ -23,12 +23,14 @@
* MCHAN: multi-channel for concurrent P2P. * MCHAN: multi-channel for concurrent P2P.
* PNO: preferred network offload. * PNO: preferred network offload.
* WOWL: Wake-On-WLAN. * WOWL: Wake-On-WLAN.
* P2P: peer-to-peer
*/ */
#define BRCMF_FEAT_LIST \ #define BRCMF_FEAT_LIST \
BRCMF_FEAT_DEF(MBSS) \ BRCMF_FEAT_DEF(MBSS) \
BRCMF_FEAT_DEF(MCHAN) \ BRCMF_FEAT_DEF(MCHAN) \
BRCMF_FEAT_DEF(PNO) \ BRCMF_FEAT_DEF(PNO) \
BRCMF_FEAT_DEF(WOWL) BRCMF_FEAT_DEF(WOWL) \
BRCMF_FEAT_DEF(P2P)
/* /*
* Quirks: * Quirks:
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment