linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels
@ 2018-11-08 15:08 Rafał Miłecki
  2018-11-09 14:05 ` Kalle Valo
  2018-11-16 13:13 ` [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels Kalle Valo
  0 siblings, 2 replies; 9+ messages in thread
From: Rafał Miłecki @ 2018-11-08 15:08 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Arend van Spriel, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
	Wright Feng, Pieter-Paul Giesberts, Chung-Hsien Hsu,
	linux-wireless, brcm80211-dev-list.pdl, brcm80211-dev-list,
	Rafał Miłecki, stable

From: Rafał Miłecki <rafal@milecki.pl>

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.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Cc: stable@vger.kernel.org
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 230a378c26fc..7f0a5bade70a 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -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;
-- 
2.13.7


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels
  2018-11-08 15:08 [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels Rafał Miłecki
@ 2018-11-09 14:05 ` Kalle Valo
  2018-11-09 20:10   ` Rafał Miłecki
  2018-11-16 13:13 ` [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels Kalle Valo
  1 sibling, 1 reply; 9+ messages in thread
From: Kalle Valo @ 2018-11-09 14:05 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Arend van Spriel, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
	Wright Feng, Pieter-Paul Giesberts, Chung-Hsien Hsu,
	linux-wireless, brcm80211-dev-list.pdl, brcm80211-dev-list,
	Rafał Miłecki, stable

Rafał Miłecki <zajec5@gmail.com> writes:

> From: Rafał Miłecki <rafal@milecki.pl>
>
> 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.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> Cc: stable@vger.kernel.org

Should this be queued to 4.20?

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels
  2018-11-09 14:05 ` Kalle Valo
@ 2018-11-09 20:10   ` Rafał Miłecki
  2018-11-16  8:40     ` Kalle Valo
  2018-11-16  8:46     ` wiki: tree labels in patches Kalle Valo
  0 siblings, 2 replies; 9+ messages in thread
From: Rafał Miłecki @ 2018-11-09 20:10 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Rafał Miłecki, Arend van Spriel, Franky Lin,
	Hante Meuleman, Chi-Hsien Lin, Wright Feng,
	Pieter-Paul Giesberts, Chung-Hsien Hsu, linux-wireless,
	brcm80211-dev-list.pdl, brcm80211-dev-list, stable

On 2018-11-09 15:05, Kalle Valo wrote:
> Rafał Miłecki <zajec5@gmail.com> writes:
> 
>> From: Rafał Miłecki <rafal@milecki.pl>
>> 
>> 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.
>> 
>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>> Cc: stable@vger.kernel.org
> 
> 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?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels
  2018-11-09 20:10   ` Rafał Miłecki
@ 2018-11-16  8:40     ` Kalle Valo
  2018-11-16  8:46     ` wiki: tree labels in patches Kalle Valo
  1 sibling, 0 replies; 9+ messages in thread
From: Kalle Valo @ 2018-11-16  8:40 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Rafał Miłecki, Arend van Spriel, Franky Lin,
	Hante Meuleman, Chi-Hsien Lin, Wright Feng,
	Pieter-Paul Giesberts, Chung-Hsien Hsu, linux-wireless,
	brcm80211-dev-list.pdl, brcm80211-dev-list, stable

Rafał Miłecki <rafal@milecki.pl> writes:

> On 2018-11-09 15:05, Kalle Valo wrote:
>> Rafał Miłecki <zajec5@gmail.com> writes:
>>
>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>
>>> 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.
>>>
>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>> Cc: stable@vger.kernel.org
>>
>> Should this be queued to 4.20?
>
> That's my suggestion.

Ok, I'll queue this for 4.20.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* wiki: tree labels in patches
  2018-11-09 20:10   ` Rafał Miłecki
  2018-11-16  8:40     ` Kalle Valo
@ 2018-11-16  8:46     ` Kalle Valo
  2018-11-16  8:49       ` Johannes Berg
  2018-11-16  8:55       ` Rafał Miłecki
  1 sibling, 2 replies; 9+ messages in thread
From: Kalle Valo @ 2018-11-16  8:46 UTC (permalink / raw)
  To: Rafał Miłecki; +Cc: linux-wireless

(changing subject for better visibility and trimming Cc)

Rafał Miłecki <rafal@milecki.pl> writes:

> On 2018-11-09 15:05, Kalle Valo wrote:
>> Rafał Miłecki <zajec5@gmail.com> writes:
>>
>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>
>>> 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.
>>>
>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>> Cc: stable@vger.kernel.org
>>
>> 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

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wiki: tree labels in patches
  2018-11-16  8:46     ` wiki: tree labels in patches Kalle Valo
@ 2018-11-16  8:49       ` Johannes Berg
  2018-11-16  8:54         ` Kalle Valo
  2018-11-16  8:55       ` Rafał Miłecki
  1 sibling, 1 reply; 9+ messages in thread
From: Johannes Berg @ 2018-11-16  8:49 UTC (permalink / raw)
  To: Kalle Valo, Rafał Miłecki; +Cc: linux-wireless

On Fri, 2018-11-16 at 10:46 +0200, Kalle Valo wrote:

> 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wiki: tree labels in patches
  2018-11-16  8:49       ` Johannes Berg
@ 2018-11-16  8:54         ` Kalle Valo
  0 siblings, 0 replies; 9+ messages in thread
From: Kalle Valo @ 2018-11-16  8:54 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Rafał Miłecki, linux-wireless

Johannes Berg <johannes@sipsolutions.net> writes:

> On Fri, 2018-11-16 at 10:46 +0200, Kalle Valo wrote:
>
>> 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.

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

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wiki: tree labels in patches
  2018-11-16  8:46     ` wiki: tree labels in patches Kalle Valo
  2018-11-16  8:49       ` Johannes Berg
@ 2018-11-16  8:55       ` Rafał Miłecki
  1 sibling, 0 replies; 9+ messages in thread
From: Rafał Miłecki @ 2018-11-16  8:55 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless

On 2018-11-16 09:46, Kalle Valo wrote:
> (changing subject for better visibility and trimming Cc)
> 
> Rafał Miłecki <rafal@milecki.pl> writes:
> 
>> On 2018-11-09 15:05, Kalle Valo wrote:
>>> Rafał Miłecki <zajec5@gmail.com> writes:
>>> 
>>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>> 
>>>> 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.
>>>> 
>>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>>> Cc: stable@vger.kernel.org
>>> 
>>> 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

Got it, thanks!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels
  2018-11-08 15:08 [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels Rafał Miłecki
  2018-11-09 14:05 ` Kalle Valo
@ 2018-11-16 13:13 ` Kalle Valo
  1 sibling, 0 replies; 9+ messages in thread
From: Kalle Valo @ 2018-11-16 13:13 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Arend van Spriel, Franky Lin, Hante Meuleman, Chi-Hsien Lin,
	Wright Feng, Pieter-Paul Giesberts, Chung-Hsien Hsu,
	linux-wireless, brcm80211-dev-list.pdl, brcm80211-dev-list,
	Rafał Miłecki, stable

Rafał Miłecki wrote:

> From: Rafał Miłecki <rafal@milecki.pl>
> 
> 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.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> Cc: stable@vger.kernel.org

Patch applied to wireless-drivers.git, thanks.

d1fe6ad6f6bd brcmfmac: fix reporting support for 160 MHz channels

-- 
https://patchwork.kernel.org/patch/10674521/

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-11-16 13:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 15:08 [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels Rafał Miłecki
2018-11-09 14:05 ` Kalle Valo
2018-11-09 20:10   ` Rafał Miłecki
2018-11-16  8:40     ` Kalle Valo
2018-11-16  8:46     ` wiki: tree labels in patches Kalle Valo
2018-11-16  8:49       ` Johannes Berg
2018-11-16  8:54         ` Kalle Valo
2018-11-16  8:55       ` Rafał Miłecki
2018-11-16 13:13 ` [PATCH FIX] brcmfmac: fix reporting support for 160 MHz channels Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).