Skip to content

Commit 2b560d7

Browse files
Pontus FuchsKalle Valo
authored andcommitted
brcmfmac: Check if firmware supports p2p
Add a feature flag to reflect the firmware's p2p capability. Reviewed-by: Pieter-Paul Giesberts <[email protected]> Reviewed-by: Hante Meuleman <[email protected]> Reviewed-by: Arend Van Spriel <[email protected]> Signed-off-by: Pontus Fuchs <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 8d01237 commit 2b560d7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/net/wireless/brcm80211/brcmfmac/feature.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ void brcmf_feat_attach(struct brcmf_pub *drvr)
129129
brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_WOWL, "wowl");
130130
if (drvr->bus_if->chip != BRCM_CC_43362_CHIP_ID)
131131
brcmf_feat_iovar_int_set(ifp, BRCMF_FEAT_MBSS, "mbss", 0);
132+
brcmf_feat_iovar_int_get(ifp, BRCMF_FEAT_P2P, "p2p");
132133

133134
/* set chip related quirks */
134135
switch (drvr->bus_if->chip) {

drivers/net/wireless/brcm80211/brcmfmac/feature.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
* MCHAN: multi-channel for concurrent P2P.
2424
* PNO: preferred network offload.
2525
* WOWL: Wake-On-WLAN.
26+
* P2P: peer-to-peer
2627
*/
2728
#define BRCMF_FEAT_LIST \
2829
BRCMF_FEAT_DEF(MBSS) \
2930
BRCMF_FEAT_DEF(MCHAN) \
3031
BRCMF_FEAT_DEF(PNO) \
31-
BRCMF_FEAT_DEF(WOWL)
32+
BRCMF_FEAT_DEF(WOWL) \
33+
BRCMF_FEAT_DEF(P2P)
3234
/*
3335
* Quirks:
3436
*

0 commit comments

Comments
 (0)