]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath10k: fix rx_channel during hw reconfigure
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Thu, 7 Apr 2016 06:41:54 +0000 (12:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:14:33 +0000 (18:14 -0700)
commit117d1b454bf5b8e66bc4ebfc50437977a52b0ce5
tree70674b424bb461dc8aeef6057886f1a7eb2f9ae0
parent86834a9133bb79a5dc078539385984a5afae014f
ath10k: fix rx_channel during hw reconfigure

commit 1ce8c1484e80010a6e4b9611c65668ff77556f45 upstream.

Upon firmware assert, restart work will be triggered so that mac80211
will reconfigure the driver. An issue is reported that after restart
work, survey dump data do not contain in-use (SURVEY_INFO_IN_USE) info
for operating channel. During reconfigure, since mac80211 already has
valid channel context for given radio, channel context iteration return
num_chanctx > 0. Hence rx_channel is always NULL. Fix this by assigning
channel context to rx_channel when driver restart is in progress.

Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath10k/mac.c