ath6kl: ignore WMI_TXE_NOTIFY_EVENTID based on fw capability flags
authorSteve deRosier <derosier@gmail.com>
Tue, 8 Mar 2016 00:58:50 +0000 (16:58 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Mar 2016 12:00:04 +0000 (14:00 +0200)
commitc9b260a684d0493238433e08fc2ac7865a89aece
tree85271108083c9202cf8813660247dfbb9961e590
parentc7212b7136ba69efb9785df68b669381cb893920
ath6kl: ignore WMI_TXE_NOTIFY_EVENTID based on fw capability flags

Certain 6004 firmware releases redefine the WMI_TXE_NOTIFY_EVENTID event
number and sends the new event frequently. However it doesn't have the
tx-err-notify feature and thus this firmware capability flag isn't set on
the firmware package. By guarding the processing of this event by the same
method we guard the sending of the WMI_SET_TXE_NOTIFY_CMDID command, we
can ignore the spurious event that we don't know how to process.

Without this change we call cfg80211_cqm_txe_notify() with possibly bad
data.

Signed-off-by: Steve deRosier <steve.derosier@lairdtech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c