ath10k: fix band reporting for mgmt CCK frames on 5GHz
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 13 Dec 2013 09:44:43 +0000 (10:44 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 16 Dec 2013 13:16:22 +0000 (15:16 +0200)
commit453cdb61c015f80e492dda217110353cd09eef18
treee0ad70a18e5f0be9b2007e542eb1e4147ac6d315
parent2256940010aab059dc238ab81b7b562b17942ec8
ath10k: fix band reporting for mgmt CCK frames on 5GHz

Although CCK modulation isn't expected for 11a if
it happened it made ath10k report wrong band
(2GHz) for a mgmt frame that were actually
received on 5Ghz band. Frequency would also
decoded incorrectly too.

In case of 5GHz-only devices this triggered
mac80211 WARN_ON because there was no according
sband pointer to be found.

The patch should fix delivery of such frames by
using different means to acquire band parameter.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi.c