|
@@ -1090,8 +1090,6 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
|
|
kfree(sdata->u.ap.next_beacon);
|
|
|
sdata->u.ap.next_beacon = NULL;
|
|
|
|
|
|
- cancel_work_sync(&sdata->u.ap.request_smps_work);
|
|
|
-
|
|
|
/* turn off carrier for this interface and dependent VLANs */
|
|
|
list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list)
|
|
|
netif_carrier_off(vlan->dev);
|
|
@@ -1103,6 +1101,7 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
|
|
kfree_rcu(old_beacon, rcu_head);
|
|
|
if (old_probe_resp)
|
|
|
kfree_rcu(old_probe_resp, rcu_head);
|
|
|
+ sdata->u.ap.driver_smps_mode = IEEE80211_SMPS_OFF;
|
|
|
|
|
|
__sta_info_flush(sdata, true);
|
|
|
ieee80211_free_keys(sdata, true);
|