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)
commit0e6eb417fc1facda1c9a9189be85f16cb5b8b69f
treeed122f518f5c1cb6045eb2729d5c60240ba9174b
parent089ab7a5af3250bdc0a4088785b1a268da06417d
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: 500ff9f9389d ("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