Skip to contentSkip to conversation

brcmfmac: advertise frames supported for TX in AP mode

PATCH In review Rafał Miłecki 3 participants 3 messages Jan 20, 2016 – Mar 16, 2016 Broadcom BRCM80211 IEEE802.11 wireless drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 brcmfmac: advertise frames supported for TX in AP mode

Callback mgmt_tx implementation supports both: PROBE_RESP and ACTION.

---
This matches code I can see in brcmf_cfg80211_mgmt_tx, hope it makes sense.

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +4 -0
index ab431e5..8d9cff4 100644
@@ -5948,6 +5948,10 @@ brcmf_txrx_stypes[NUM_NL80211_IFTYPES] = {
 		.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
 		      BIT(IEEE80211_STYPE_PROBE_REQ >> 4)
 	},
+	[NL80211_IFTYPE_AP] = {
+		.tx = BIT(IEEE80211_STYPE_ACTION >> 4) |
+		      BIT(IEEE80211_STYPE_PROBE_RESP >> 4)
+	},
 	[NL80211_IFTYPE_P2P_CLIENT] = {
 		.tx = 0xffff,
 		.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
Signature · 1 line
1.8.4.5
#1 lore raw
Quoted 6 lines · Rafał Miłecki

Callback mgmt_tx implementation supports both: PROBE_RESP and ACTION.

---
This matches code I can see in brcmf_cfg80211_mgmt_tx, hope it makes sense.

As said in another response [1] this function was added for P2P functionality. Hence I do not feel comfortable adding this patch without subsequent testing.

Regards,
Arend

[1] http://mid.gmane.org/[email protected]

Quoted 20 lines
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +4 -0
index ab431e5..8d9cff4 100644
@@ -5948,6 +5948,10 @@ brcmf_txrx_stypes[NUM_NL80211_IFTYPES] = {
 		.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
 		      BIT(IEEE80211_STYPE_PROBE_REQ >> 4)
 	},
+	[NL80211_IFTYPE_AP] = {
+		.tx = BIT(IEEE80211_STYPE_ACTION >> 4) |
+		      BIT(IEEE80211_STYPE_PROBE_RESP >> 4)
+	},
 	[NL80211_IFTYPE_P2P_CLIENT] = {
 		.tx = 0xffff,
 		.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
#2 lore raw

Hi,

Quoted 5 lines · Arend van Spriel
Quoted 2 lines · Rafał Miłecki

Callback mgmt_tx implementation supports both: PROBE_RESP and ACTION.

Quoted 8 lines
Quoted 4 lines

---
This matches code I can see in brcmf_cfg80211_mgmt_tx, hope it makes sense.

As said in another response [1] this function was added for P2P functionality. Hence I do not feel comfortable adding this patch without subsequent testing.

Has anyone tested this yet?

Thanks,

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/