]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath10k: fix AP/IBSS CSA with template based fw
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 5 Mar 2015 14:02:17 +0000 (16:02 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 7 Mar 2015 07:39:16 +0000 (09:39 +0200)
commit81a9a17db5d766d2872c4ab8a77b8666d22031ec
tree2978594bd85000263b2ab6f49297ad5461315d6a
parentb24af141c81a0885cb736b8eedbe6427e5e5cd1b
ath10k: fix AP/IBSS CSA with template based fw

qca6174 with wmi-tlv firmware uses offloaded
beaconing scheme (i.e. templates). This requires a
little different approach when implementing CSA.

Add missing code to update CS count and report CSA
completion to mac80211. Without it channel switch
was never finished.

To avoid races during interface teardown data_lock
has been used to protect is_up and is_started so
they can be compared against before scheduling
count down work.

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