]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mt76: mt7921: fix wrong UNII-4 freq range check for the channel usage
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Tue, 6 Aug 2024 01:34:08 +0000 (09:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:32:25 +0000 (16:32 +0200)
[ Upstream commit 723762a7a7e6fdb3cc6953f127a3fe9c5162beb7 ]

The check should start from 5845 to 5925, which includes
channels 169, 173, and 177.

Fixes: 09382d8f8641 ("wifi: mt76: mt7921: update the channel usage when the regd domain changed")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20240806013408.17874-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/init.c

index ef0c721d26e332b6d65485e52d144098a5aaef6a..57672c69150e489ab19338e3da3050d6d9d0d01d 100644 (file)
@@ -83,7 +83,7 @@ mt7921_regd_channel_update(struct wiphy *wiphy, struct mt792x_dev *dev)
                }
 
                /* UNII-4 */
-               if (IS_UNII_INVALID(0, 5850, 5925))
+               if (IS_UNII_INVALID(0, 5845, 5925))
                        ch->flags |= IEEE80211_CHAN_DISABLED;
        }