提交 7305d3e0 编写于 作者: M Michal Kazior 提交者: Kalle Valo

ath10k: fix offchannel cancel failures

When mac80211 requests driver to cancel a hw roc
the driver must not call the expired() callback or
else roc will fail in some cases depending on how
things get scheduled.
Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 dcca0bdb
...@@ -2184,10 +2184,10 @@ void __ath10k_scan_finish(struct ath10k *ar) ...@@ -2184,10 +2184,10 @@ void __ath10k_scan_finish(struct ath10k *ar)
case ATH10K_SCAN_IDLE: case ATH10K_SCAN_IDLE:
break; break;
case ATH10K_SCAN_RUNNING: case ATH10K_SCAN_RUNNING:
case ATH10K_SCAN_ABORTING:
if (ar->scan.is_roc) if (ar->scan.is_roc)
ieee80211_remain_on_channel_expired(ar->hw); ieee80211_remain_on_channel_expired(ar->hw);
else case ATH10K_SCAN_ABORTING:
if (!ar->scan.is_roc)
ieee80211_scan_completed(ar->hw, ieee80211_scan_completed(ar->hw,
(ar->scan.state == (ar->scan.state ==
ATH10K_SCAN_ABORTING)); ATH10K_SCAN_ABORTING));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册