From: Rajkumar Manoharan <rmanohar@codeaurora.org>
To: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Cc: johannes@sipsolutions.net, kvalo@codeaurora.org,
linux-wireless@vger.kernel.org,
linux-wireless-owner@vger.kernel.org
Subject: Re: [PATCH v2 10/11] mac80211: determine chantype from HE operation in 6 GHz
Date: Fri, 08 May 2020 16:45:23 -0700 [thread overview]
Message-ID: <f25026eaf2fd718fba35b1a5cfaafd8f@codeaurora.org> (raw)
In-Reply-To: <29370be316eca4d5592baeeaa6c1a779@codeaurora.org>
On 2020-05-08 15:53, Pradeep Kumar Chitrapu wrote:
>> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
>> index b4dfefd482a6..9115dc9c7d78 100644
>> --- a/net/mac80211/mlme.c
>> +++ b/net/mac80211/mlme.c
>> @@ -163,6 +163,9 @@ ieee80211_determine_chantype(struct
>> ieee80211_sub_if_data *sdata,
>> chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
>> chandef->center_freq1 = channel->center_freq;
>>
>> + if (channel->band == NL80211_BAND_6GHZ)
>> + goto skip_ht_vht_oper;
>> +
>> if (!ht_oper || !sta_ht_cap.ht_supported) {
>> ret = IEEE80211_STA_DISABLE_HT |
>> IEEE80211_STA_DISABLE_VHT |
>> @@ -263,6 +266,15 @@ ieee80211_determine_chantype(struct
>> ieee80211_sub_if_data *sdata,
>>
>> *chandef = vht_chandef;
>>
>> +skip_ht_vht_oper:
>> + if (!ieee80211_chandef_he_oper(sdata, he_oper, chandef)) {
>> + if (!(ifmgd->flags & IEEE80211_STA_DISABLE_HE))
>> + sdata_info(sdata,
>> + "AP HE information is invalid, disable HE\n");
>> + ret = IEEE80211_STA_DISABLE_HE;
>> + goto out;
>> + }
>> +
> Hi Rajkumar,
> Above is causing to disable HE in STA mode even when AP supports HE.
> Shouldn't this be done only for 6GHz band?
> something like below?
> if (channel->band == NL80211_BAND_6GHZ &&
> !ieee80211_chandef_he_oper(sdata, he_oper, chandef))
>
Good catch.
>> +
>> + he_cap = ieee80211_get_he_iftype_cap(sband, sdata->vif.type);
>> + if (!he_cap)
>> + return false;
>> +
> or return true here if band is not NL80211_BAND_6GHZ?
>
Make sense. Will address it.
-Rajkumar
next prev parent reply other threads:[~2020-05-08 23:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 22:20 [PATCH v2 01/11] cfg80211: use only HE capability to set prohibited flags in 6 GHz Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 02/11] cfg80211: handle 6 GHz capability of new station Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 03/11] nl80211: add HE 6 GHz Band Capability support Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 04/11] mac80211: add HE 6 GHz Band Capabilities into parse extension Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 05/11] mac80211: fix memory overlap due to variable length param Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 06/11] mac80211: handle HE 6 GHz Capability in HE STA processing Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 07/11] mac80211: add HE 6 GHz Band Capability IE in Assoc. Request Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 08/11] mac80211: build HE operation with 6 GHz oper information Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 09/11] mac80211: do not allow HT/VHT IEs in 6 GHz mesh mode Rajkumar Manoharan
2020-04-30 22:20 ` [PATCH v2 10/11] mac80211: determine chantype from HE operation in 6 GHz Rajkumar Manoharan
2020-05-08 22:53 ` Pradeep Kumar Chitrapu
2020-05-08 23:45 ` Rajkumar Manoharan [this message]
2020-04-30 22:20 ` [PATCH v2 11/11] ath11k: build HE 6 GHz capability Rajkumar Manoharan
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=f25026eaf2fd718fba35b1a5cfaafd8f@codeaurora.org \
--to=rmanohar@codeaurora.org \
--cc=johannes@sipsolutions.net \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless-owner@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=pradeepc@codeaurora.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 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).