mt76: mt7615: keep mcu_add_bss_info enabled till interface removal
authorRyder Lee <ryder.lee@mediatek.com>
Thu, 25 Mar 2021 08:06:04 +0000 (16:06 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:03:05 +0000 (00:03 +0200)
commitd9852ab2f362fc4fcf501f4350d007b08559ccc1
tree4f3697d6ee4ba33c3ab5e0cd8e8d4543a2105447
parentad2a1ea49f631bb739116e9839b6f65231053112
mt76: mt7615: keep mcu_add_bss_info enabled till interface removal

BSS_INFO_BASIC is never called alone with inactive state, which always
follows beacon offload disable, so keep it enabled throughout interfaces
life cycle. Inactive state also removes sta record of all connected
stations, thurs causes connection lost which defeats the purpose of CSA.

Lastly, this is especially an unexpected behavior that keeping mt7622
failing beacon buffer recyled when scanning channels.

bss_conf change is updated with active state only, so just overwrite it.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/main.c