提交 005ba2f1 编写于 作者: J Jussi Kivilinna 提交者: John W. Linville

rndis_wlan: clear cfg80211 scan on rndis_wlan_stop()

Scanning gets stuck if device is stopped when scan is active. Fix by
clearing/aborting cfg80211 scan on rndis_wlan_stop().
Signed-off-by: NJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 110736de
...@@ -1484,6 +1484,9 @@ static void rndis_get_scan_results(struct work_struct *work) ...@@ -1484,6 +1484,9 @@ static void rndis_get_scan_results(struct work_struct *work)
devdbg(usbdev, "get_scan_results"); devdbg(usbdev, "get_scan_results");
if (!priv->scan_request)
return;
ret = rndis_check_bssid_list(usbdev); ret = rndis_check_bssid_list(usbdev);
cfg80211_scan_done(priv->scan_request, ret < 0); cfg80211_scan_done(priv->scan_request, ret < 0);
...@@ -2522,6 +2525,11 @@ static int rndis_wlan_stop(struct usbnet *usbdev) ...@@ -2522,6 +2525,11 @@ static int rndis_wlan_stop(struct usbnet *usbdev)
cancel_work_sync(&priv->work); cancel_work_sync(&priv->work);
flush_workqueue(priv->workqueue); flush_workqueue(priv->workqueue);
if (priv->scan_request) {
cfg80211_scan_done(priv->scan_request, true);
priv->scan_request = NULL;
}
return retval; return retval;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册