[PATCH v4 14/17] mac80211: support S1G association
Wen Gong
wgong at codeaurora.org
Mon Nov 23 03:39:32 EST 2020
add more to know it.
On 2020-11-23 16:38, Wen Gong wrote:
> On 2020-09-22 10:28, Thomas Pedersen wrote:
> ...
>> @@ -3446,6 +3453,42 @@ bool ieee80211_chandef_he_6ghz_oper(struct
>> ieee80211_sub_if_data *sdata,
>>
>> *chandef = he_chandef;
>>
>> + return false;
>> +}
> This change the "return true" to "return false" by default of
> ieee80211_chandef_he_6ghz_oper.
> It should be typo mistake.
>> +
>> +bool ieee80211_chandef_s1g_oper(const struct ieee80211_s1g_oper_ie
>> *oper,
>> + struct cfg80211_chan_def *chandef)
>> +{
>> + u32 oper_freq;
>> +
>> + if (!oper)
>> + return false;
>> +
>> + switch (FIELD_GET(S1G_OPER_CH_WIDTH_OPER, oper->ch_width)) {
>> + case IEEE80211_S1G_CHANWIDTH_1MHZ:
>> + chandef->width = NL80211_CHAN_WIDTH_1;
>> + break;
>> + case IEEE80211_S1G_CHANWIDTH_2MHZ:
>> + chandef->width = NL80211_CHAN_WIDTH_2;
>> + break;
>> + case IEEE80211_S1G_CHANWIDTH_4MHZ:
>> + chandef->width = NL80211_CHAN_WIDTH_4;
>> + break;
>> + case IEEE80211_S1G_CHANWIDTH_8MHZ:
>> + chandef->width = NL80211_CHAN_WIDTH_8;
>> + break;
>> + case IEEE80211_S1G_CHANWIDTH_16MHZ:
>> + chandef->width = NL80211_CHAN_WIDTH_16;
>> + break;
>> + default:
>> + return false;
>> + }
>> +
>> + oper_freq = ieee80211_channel_to_freq_khz(oper->oper_ch,
>> + NL80211_BAND_S1GHZ);
>> + chandef->center_freq1 = KHZ_TO_MHZ(oper_freq);
>> + chandef->freq1_offset = oper_freq % 1000;
>> +
>> return true;
>> }
>>
> ....
More information about the ath11k
mailing list