On 3/1/2023 6:09 PM, gregory.greenman@xxxxxxxxx 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?
...