OSDN Git Service

wifi: mt76: mt7996: fix bss wlan_idx when sending bss_info command
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Mon, 5 Jun 2023 15:21:34 +0000 (23:21 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 25 Jul 2023 19:59:42 +0000 (21:59 +0200)
commitcc945b546227423488fe4be0ab92fd126b703246
tree11b1b427adbf33ecc3a02a7cab80f91af63da306
parenta32f063dfbe38a70cd670cdc2266b9fafdc998a8
wifi: mt76: mt7996: fix bss wlan_idx when sending bss_info command

The bmc_tx_wlan_idx should be the wlan_idx of the current bss rather
than peer AP's wlan_idx, otherwise there will appear some frame
decryption problems on station mode.

Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Reviewed-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c