All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aloka Dixit <alokad@codeaurora.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, linux-wireless-owner@vger.kernel.org
Subject: Re: [PATCH] mac80211: Fix radiotap header channel flag for 6GHz band
Date: Fri, 11 Sep 2020 20:50:46 +0000	[thread overview]
Message-ID: <010101747eef4de4-f80bae2e-6ab2-48c5-bc89-bf21e5ac41fc-000000@us-west-2.amazonses.com> (raw)
In-Reply-To: <1cc7242cd00cd5141a56f17a7f5c80700485aa39.camel@sipsolutions.net>

On 2020-09-11 00:36, Johannes Berg wrote:
> On Fri, 2020-09-11 at 01:11 +0000, Aloka Dixit wrote:
>> Radiotap header field 'Channel flags' has '2 GHz spectrum' set to
>> 'true' for 6GHz packet.
>> Change it to 5GHz as there isn't a separate option available for 6GHz.
>> 
>> Signed-off-by: Aloka Dixit <alokad@codeaurora.org>
>> ---
>>  net/mac80211/rx.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>> 
>> diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
>> index 836cde516a18..a959ebf56852 100644
>> --- a/net/mac80211/rx.c
>> +++ b/net/mac80211/rx.c
>> @@ -451,7 +451,8 @@ ieee80211_add_rx_radiotap_header(struct 
>> ieee80211_local *local,
>>  	else if (status->bw == RATE_INFO_BW_5)
>>  		channel_flags |= IEEE80211_CHAN_QUARTER;
>> 
>> -	if (status->band == NL80211_BAND_5GHZ)
>> +	if (status->band == NL80211_BAND_5GHZ ||
>> +	    status->band == NL80211_BAND_6GHZ)
>>  		channel_flags |= IEEE80211_CHAN_OFDM | IEEE80211_CHAN_5GHZ;
> 
> I guess we should just not set any of those flags?
> 
> Not that anything even cares ... so there's no point in adding a 6GHz
> flag to radiotap.
> 
> johannes

Separate flag for 6GHz would have been best option, but I still think 
better to set 5GHz as 6GHz frequencies start in 5GHz range.
Thanks.

  reply	other threads:[~2020-09-11 20:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <010101747ab7b9c0-45fa1c2a-3bb5-44e8-8e6d-457cad2e9845-000000@us-west-2.amazonses.com>
2020-09-11  7:36 ` [PATCH] mac80211: Fix radiotap header channel flag for 6GHz band Johannes Berg
2020-09-11 20:50   ` Aloka Dixit [this message]
     [not found]   ` <010101747eef4d8b-8b5fdae5-790f-4d19-a2df-fba00350baa3-000000@us-west-2.amazonses.com>
2020-09-11 20:52     ` Johannes Berg
2020-09-14  9:14       ` Arend Van Spriel
2020-09-20 18:53         ` Aloka Dixit
2020-09-11  1:11 Aloka Dixit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=010101747eef4de4-f80bae2e-6ab2-48c5-bc89-bf21e5ac41fc-000000@us-west-2.amazonses.com \
    --to=alokad@codeaurora.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless-owner@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.