[PATCH v2 07/23] wifi: wireless: correct validation 6G Band for primary channel
Wen Gong
quic_wgong at quicinc.com
Thu Mar 2 01:31:27 PST 2023
On 3/1/2023 6:09 PM, gregory.greenman at intel.com wrote:
...
> */
> - if (channel->band == NL80211_BAND_6GHZ &&
> - (freq == channel->center_freq ||
> - abs(freq - channel->center_freq) > 80))
> + if (freq == channel->center_freq)
> return channel;
>
freq is KHz, channel->center_freq is MHz, so should change to if (freq /
1000 == channel->center_freq)?
> alt_channel = ieee80211_get_channel_khz(wiphy, freq);
> if (!alt_channel) {
> - if (channel->band == NL80211_BAND_2GHZ) {
> + if (channel->band == NL80211_BAND_2GHZ ||
> + channel->band == NL80211_BAND_60GHZ) {
it should be NL80211_BAND_6GHZ, NOT 60GHZ?
...
More information about the ath11k
mailing list