提交 e83eb2fc 编写于 作者: V Vladimir Kondratiev 提交者: John W. Linville

wil6210: enable scan while connected

New firmware do support scan while connected. Enable it.
Signed-off-by: NVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e58c9f70
...@@ -282,7 +282,7 @@ static int wil_cfg80211_scan(struct wiphy *wiphy, ...@@ -282,7 +282,7 @@ static int wil_cfg80211_scan(struct wiphy *wiphy,
/* FW don't support scan after connection attempt */ /* FW don't support scan after connection attempt */
if (test_bit(wil_status_dontscan, &wil->status)) { if (test_bit(wil_status_dontscan, &wil->status)) {
wil_err(wil, "Scan after connect attempt not supported\n"); wil_err(wil, "Can't scan now\n");
return -EBUSY; return -EBUSY;
} }
...@@ -402,10 +402,7 @@ static int wil_cfg80211_connect(struct wiphy *wiphy, ...@@ -402,10 +402,7 @@ static int wil_cfg80211_connect(struct wiphy *wiphy,
memcpy(conn.bssid, bss->bssid, ETH_ALEN); memcpy(conn.bssid, bss->bssid, ETH_ALEN);
memcpy(conn.dst_mac, bss->bssid, ETH_ALEN); memcpy(conn.dst_mac, bss->bssid, ETH_ALEN);
/*
* FW don't support scan after connection attempt
*/
set_bit(wil_status_dontscan, &wil->status);
set_bit(wil_status_fwconnecting, &wil->status); set_bit(wil_status_fwconnecting, &wil->status);
rc = wmi_send(wil, WMI_CONNECT_CMDID, &conn, sizeof(conn)); rc = wmi_send(wil, WMI_CONNECT_CMDID, &conn, sizeof(conn));
...@@ -414,7 +411,6 @@ static int wil_cfg80211_connect(struct wiphy *wiphy, ...@@ -414,7 +411,6 @@ static int wil_cfg80211_connect(struct wiphy *wiphy,
mod_timer(&wil->connect_timer, mod_timer(&wil->connect_timer,
jiffies + msecs_to_jiffies(2000)); jiffies + msecs_to_jiffies(2000));
} else { } else {
clear_bit(wil_status_dontscan, &wil->status);
clear_bit(wil_status_fwconnecting, &wil->status); clear_bit(wil_status_fwconnecting, &wil->status);
} }
......
...@@ -113,8 +113,6 @@ static void _wil6210_disconnect(struct wil6210_priv *wil, void *bssid) ...@@ -113,8 +113,6 @@ static void _wil6210_disconnect(struct wil6210_priv *wil, void *bssid)
GFP_KERNEL); GFP_KERNEL);
} }
clear_bit(wil_status_fwconnecting, &wil->status); clear_bit(wil_status_fwconnecting, &wil->status);
wil_dbg_misc(wil, "clear_bit(wil_status_dontscan)\n");
clear_bit(wil_status_dontscan, &wil->status);
break; break;
default: default:
/* AP-like interface and monitor: /* AP-like interface and monitor:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册