]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix channel switching
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 3 Jun 2015 10:16:56 +0000 (12:16 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Jun 2015 10:46:59 +0000 (13:46 +0300)
commit5eb7c49d4dc6bf9eaefd03beb8047720b7529e37
treeed122f518f5c1cb6045eb2729d5c60240ba9174b
parentaddb585b2d8130ebd312a675303ceb1346f3fbc7
ath10k: fix channel switching

In the midst of chanctx patch review channel
switching became broken which I failed to notice
until now.

Function ath10k_mac_vif_chan() reports current
chandef which isn't updated until after
switch_vif_chanctx() is returned from.
Consequently the driver just restarted operation
on channels it was residing already instead of
switching to the new ones.

Fixes: 72259d7bee91 ("ath10k: implement chanctx API")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c