OSDN Git Service

mt76x2: init: fix rx filter default value during init
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Thu, 14 Dec 2017 15:39:18 +0000 (16:39 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:25:56 +0000 (19:25 +0200)
commita86af66f9b0cacd8e9e6a8fd9e7cf9db624765be
tree3513c39c884be8e18ae1767badf47660c8a6f952
parente8be626d794bfcb898b582c11b447becc7c78d00
mt76x2: init: fix rx filter default value during init

mt76x2_mac_start writes dev->rxfilter to the hardware. It also happens
during init, before dev->rxfilter is filled with the initval register
value, leading to issues like promisc mode being enabled
unconditionally.

Fix this by reading the default value into dev->rxfilter earlier

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_init.c