Skip to contentSkip to conversation

brcmfmac: fix reporting support for 160 MHz channels

PATCH In review Rafał Miłecki 4 participants 9 messages Nov 8, 2018 – Nov 16, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 brcmfmac: fix reporting support for 160 MHz channels

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless firmware reports it for a given channel later.

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +2 -1
index 230a378c26fc..7f0a5bade70a 100644
@@ -6005,7 +6005,8 @@ static int brcmf_construct_chaninfo(struct brcmf_cfg80211_info *cfg,
 			 * for subsequent chanspecs.
 			 */
 			channel->flags = IEEE80211_CHAN_NO_HT40 |
-					 IEEE80211_CHAN_NO_80MHZ;
+					 IEEE80211_CHAN_NO_80MHZ |
+					 IEEE80211_CHAN_NO_160MHZ;
 			ch.bw = BRCMU_CHAN_BW_20;
 			cfg->d11inf.encchspec(&ch);
 			chaninfo = ch.chspec;
Signature · 1 line
2.13.7
#1 lore raw
Quoted 7 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless firmware reports it for a given channel later.

Quoted 5 lines

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

Should this be queued to 4.20?

Signature · 1 line
Kalle Valo
#2 lore raw
Quoted 9 lines · Kalle Valo
Quoted 7 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless firmware reports it for a given channel later.

Quoted 7 lines
Quoted 5 lines

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

Should this be queued to 4.20?

That's my suggestion.

I try to mark fixes (patches for currently developed release) with an extra FIX tag in a subject. Do you see those when using your patchwork tool? Do you have any other method in mind that would be preferred by you?

#3 lore raw
Quoted 14 lines · Rafał Miłecki
Quoted 13 lines · Kalle Valo
Quoted 11 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless
firmware reports it for a given channel later.

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Should this be queued to 4.20?

That's my suggestion.

Ok, I'll queue this for 4.20.

Signature · 1 line
Kalle Valo
#4 lore raw

wiki: tree labels in patches

In reply to Rafał Miłecki

(changing subject for better visibility and trimming Cc)

Quoted 17 lines · Rafał Miłecki
Quoted 16 lines · Kalle Valo
Quoted 13 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless
firmware reports it for a given channel later.

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

Quoted 7 lines
Quoted 1 line

Should this be queued to 4.20?

That's my suggestion.

I try to mark fixes (patches for currently developed release) with an extra FIX tag in a subject. Do you have any other method in mind that would be preferred by you?

Yes, I do see your FIX tag in patchwork:

[ 31] [FIX] brcmfmac: fix reporting support for 160 MHz channels 2018-11-08

But "FIX" is a bit ambigous as not all fixes not go to wireless-drivers, they can also go to wireless-drivers-next. So I prefer using the release number (or name of the tree) like this:

[PATCH 4.20] brcmfmac: fix reporting support for 160 MHz channels

After seeing your question I added something about this to the wiki which hopefully helps others:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#tree_labels

Signature · 1 line
Kalle Valo
#5 lore raw

Re: wiki: tree labels in patches

Quoted 9 lines · Kalle Valo

Yes, I do see your FIX tag in patchwork:

[ 31] [FIX] brcmfmac: fix reporting support for 160 MHz channels 2018-11-08

But "FIX" is a bit ambigous as not all fixes not go to wireless-drivers, they can also go to wireless-drivers-next. So I prefer using the release number (or name of the tree) like this:

[PATCH 4.20] brcmfmac: fix reporting support for 160 MHz channels

FWIW, davem/networking just use

[PATCH net]
[PATCH net-next]

which puts a bit more effort on the submitter but is a bit easier on the maintainer I suppose. Also, not really a problem here, but it would help disambiguate different trees on the same mailing list. I don't really mind either way.

johannes

#6 lore raw

Re: wiki: tree labels in patches

Quoted 14 lines · Johannes Berg
Quoted 9 lines · Kalle Valo

Yes, I do see your FIX tag in patchwork:

[ 31] [FIX] brcmfmac: fix reporting support for 160 MHz channels 2018-11-08

But "FIX" is a bit ambigous as not all fixes not go to wireless-drivers, they can also go to wireless-drivers-next. So I prefer using the release number (or name of the tree) like this:

[PATCH 4.20] brcmfmac: fix reporting support for 160 MHz channels

FWIW, davem/networking just use

Quoted 7 lines

[PATCH net]
[PATCH net-next]

which puts a bit more effort on the submitter but is a bit easier on the maintainer I suppose. Also, not really a problem here, but it would help disambiguate different trees on the same mailing list. I don't really mind either way.

Actually I already added that to the wiki[1] but made it optional just bacause it's harder for patch submitters who are not so familiar with our tree structure. But yes, I also like using the full tree name as the label, even more so as it would help me to automatically assign patches to correct maintainers in patchwork.

[1] https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#tree_labels

Signature · 1 line
Kalle Valo
#7 lore raw

Re: wiki: tree labels in patches

In reply to Kalle Valo
Quoted 38 lines · Kalle Valo

(changing subject for better visibility and trimming Cc)

Quoted 17 lines · Rafał Miłecki
Quoted 16 lines · Kalle Valo
Quoted 13 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless
firmware reports it for a given channel later.

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

Quoted 7 lines
Quoted 1 line

Should this be queued to 4.20?

That's my suggestion.

I try to mark fixes (patches for currently developed release) with an extra FIX tag in a subject. Do you have any other method in mind that would be preferred by you?

Yes, I do see your FIX tag in patchwork:

[ 31] [FIX] brcmfmac: fix reporting support for 160 MHz channels
2018-11-08

But "FIX" is a bit ambigous as not all fixes not go to wireless-drivers, they can also go to wireless-drivers-next. So I prefer using the release number (or name of the tree) like this:

Quoted 6 lines

[PATCH 4.20] brcmfmac: fix reporting support for 160 MHz channels

After seeing your question I added something about this to the wiki which hopefully helps others:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#tree_labels

Got it, thanks!

#8 lore raw
In reply to Rafał Miłecki
Quoted 7 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless firmware reports it for a given channel later.

Quoted 5 lines

This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface.

Patch applied to wireless-drivers.git, thanks.

d1fe6ad6f6bd brcmfmac: fix reporting support for 160 MHz channels

Signature · 3 lines
https://patchwork.kernel.org/patch/10674521/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches