Skip to content

Commit 308cc45

Browse files
aotcherejmberg-intel
authored andcommitted
wifi: iwlwifi: Don't mark DFS channels as NO-IR
The NVM_CHANNEL_ACTIVE bit means that active scanning/beaconing is allowed, however it's not an exact opposite of IEEE80211_CHAN_NO_IR. For example, NVM_CHANNEL_ACTIVE bit is not set on DFS channels, while cfg80211 doesn't really expect NO-IR on DFS channels. Signed-off-by: Andrei Otcheretianski <[email protected]> Reviewed-by: Gregory Greenman <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20231219215605.94cd9b96a532.Ifb0e8d8a6a6384493758f26b811d58432536101a@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent a1910a7 commit 308cc45

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,8 +1612,13 @@ static u32 iwl_nvm_get_regdom_bw_flags(const u16 *nvm_chan,
16121612
if ((nvm_flags & NVM_CHANNEL_GO_CONCURRENT)) {
16131613
if (flags & NL80211_RRF_NO_IR)
16141614
flags |= NL80211_RRF_GO_CONCURRENT;
1615-
if (flags & NL80211_RRF_DFS)
1615+
if (flags & NL80211_RRF_DFS) {
16161616
flags |= NL80211_RRF_DFS_CONCURRENT;
1617+
/* Our device doesn't set active bit for DFS channels
1618+
* however, once marked as DFS no-ir is not needed.
1619+
*/
1620+
flags &= ~NL80211_RRF_NO_IR;
1621+
}
16171622
}
16181623
/*
16191624
* reg_capa is per regulatory domain so apply it for every channel

0 commit comments

Comments
 (0)