Skip to content

Commit

Permalink
wifi: mt76: mt7921: fix wrong UNII-4 freq range check for the channel…
Browse files Browse the repository at this point in the history
… usage

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

Fixes: 09382d8 ("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>
  • Loading branch information
Ming Yen Hsieh authored and Felix Fietkau committed Sep 5, 2024
1 parent 862bf7c commit 723762a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt7921/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 723762a

Please sign in to comment.