|
@@ -115,6 +115,8 @@ int qtnf_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev)
|
|
|
|
|
|
vif = qtnf_netdev_get_priv(wdev->netdev);
|
|
|
|
|
|
+ qtnf_scan_done(vif->mac, true);
|
|
|
+
|
|
|
if (qtnf_cmd_send_del_intf(vif))
|
|
|
pr_err("VIF%u.%u: failed to delete VIF\n", vif->mac->macid,
|
|
|
vif->vifid);
|
|
@@ -335,6 +337,8 @@ static int qtnf_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
|
|
struct qtnf_vif *vif = qtnf_netdev_get_priv(dev);
|
|
|
int ret;
|
|
|
|
|
|
+ qtnf_scan_done(vif->mac, true);
|
|
|
+
|
|
|
ret = qtnf_cmd_send_stop_ap(vif);
|
|
|
if (ret) {
|
|
|
pr_err("VIF%u.%u: failed to stop AP operation in FW\n",
|
|
@@ -570,8 +574,6 @@ qtnf_del_station(struct wiphy *wiphy, struct net_device *dev,
|
|
|
!qtnf_sta_list_lookup(&vif->sta_list, params->mac))
|
|
|
return 0;
|
|
|
|
|
|
- qtnf_scan_done(vif->mac, true);
|
|
|
-
|
|
|
ret = qtnf_cmd_send_del_sta(vif, params);
|
|
|
if (ret)
|
|
|
pr_err("VIF%u.%u: failed to delete STA %pM\n",
|
|
@@ -1134,8 +1136,9 @@ void qtnf_virtual_intf_cleanup(struct net_device *ndev)
|
|
|
}
|
|
|
|
|
|
vif->sta_state = QTNF_STA_DISCONNECTED;
|
|
|
- qtnf_scan_done(mac, true);
|
|
|
}
|
|
|
+
|
|
|
+ qtnf_scan_done(mac, true);
|
|
|
}
|
|
|
|
|
|
void qtnf_cfg80211_vif_reset(struct qtnf_vif *vif)
|