ath10k: fix interrupt storm
commit548462133d98e5da93fd6b4c9edc6bf5c87dfc92
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Mon, 2 Mar 2015 12:15:28 +0000 (2 17:45 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 7 Mar 2015 08:03:43 +0000 (7 10:03 +0200)
treeff2b17c59c28bb7f0ba84129f1fed16ca3cbc2f1
parent822b7e0b633bbf3edc316791ca57a4cbaff93e6a
ath10k: fix interrupt storm

Promiscuous mode is enabled when wlan interface is added to
bridge. ath10k creates a monitor mode when promiscuous mode
is enabled. When monitor vdev is running along with other
vdev(s) there is a huge number of interrupts generated
especially in noisy condition. Fix this by not enabling
promiscuous(monitor) mode when already a vdev is running.
As disabling promiscuous mode may have issues with 4-address
bridging in STA mode, the change is done specific to non-sta/ibss
mode types. This does not change the support of virtual interface of
type monitor along with other vdevs of any type.

This could fix management frame drop in fw due to unavailable
buffers because in monitor mode device receives everything seen
on the air. In noisy condition, disabling monitor mode helps assoc
go through without any issue.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c