]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7915: set bssinfo/starec command when adding interface
authorShayne Chen <shayne.chen@mediatek.com>
Fri, 14 Jan 2022 09:49:11 +0000 (17:49 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:59 +0000 (13:57 +0100)
commit16d5b05f8950b25979423dfe447c859148452424
tree2cfedbc085b969fdd0efc8cad30e243015dbc7c7
parent47c842f7f7d80b3734a70bba1e683d9af1504ae9
mt76: mt7915: set bssinfo/starec command when adding interface

bssinfo/starec disabled commands are sent during removing interface.
However, if we don't set corresponding enabled commands before
removing interface, the fw may enter an exception state due to
some NULL structs.
For example, the following commands can cause fw timeout in our newer
chips:
    ifconfig wlan0/mon0 up
    ifconfig wlan0/mon0 down

Fix this by setting enabled commands once interface added.

Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/main.c