wifi: mt76: fix 6GHz high channel not be scanned
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Thu, 23 Mar 2023 13:26:12 +0000 (21:26 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 Apr 2023 15:30:02 +0000 (17:30 +0200)
commit23792cedaff02351b57bddd8957fc917fa88f2e0
treef1e80a86254319e563d44f52913c37fa4a92cf0c
parentc397fc1e6365a2a9e5540a85b2c1d4ea412aa0e2
wifi: mt76: fix 6GHz high channel not be scanned

mt76 scan command only support 64 channels currently. If the
channel count is larger than 64(for 2+5+6GHz), some channels will
not be scanned. Hence change the scan type to full channel scan
in case of the command cannot include proper list for chip.

Fixes: 399090ef9605 ("mt76: mt76_connac: move hw_scan and sched_scan routine in mt76_connac_mcu module")
Reported-by: Ben Greear <greearb@candelatech.com>
Tested-by: Isaac Konikoff <konikofi@candelatech.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c