Skip to content

Commit

Permalink
wifi: mt76: mt7921: fix 6GHz disabled by the missing default CLC config
Browse files Browse the repository at this point in the history
No matter CLC is enabled or disabled, the driver should initialize
the default value 0xff for channel configuration of CLC. Otherwise,
the zero value would disable channels.

Reported-and-tested-by: Ben Greear <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 09382d8f8641 ("wifi: mt76: mt7921: update the channel usage when the regd domain changed")
Signed-off-by: Ming Yen Hsieh <[email protected]>
Signed-off-by: Deren Wu <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/5a976ddf1f636b5cb809373501d3cfdc6d8de3e4.1698648737.git.deren.wu@mediatek.com
  • Loading branch information
Ming Yen Hsieh authored and nbd168 committed Dec 18, 2023
1 parent f63f87c commit bebd9cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mt7921/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ static int mt7921_load_clc(struct mt792x_dev *dev, const char *fw_name)
int ret, i, len, offset = 0;
u8 *clc_base = NULL, hw_encap = 0;

dev->phy.clc_chan_conf = 0xff;
if (mt7921_disable_clc ||
mt76_is_usb(&dev->mt76))
return 0;
Expand Down

0 comments on commit bebd9cf

Please sign in to comment.