mac80211: introduce refcount for queue_stop_reasons
[deliverable/linux.git] / net / mac80211 / iface.c
index 81a8e2a0b6aa0e3dac6d67b9c85fe2da863ac8a1..1971d2418d44319c00a34ed00067788907bbf307 100644 (file)
@@ -844,7 +844,8 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
        if (!ieee80211_csa_needs_block_tx(local))
                ieee80211_wake_queues_by_reason(&local->hw,
                                        IEEE80211_MAX_QUEUE_MAP,
-                                       IEEE80211_QUEUE_STOP_REASON_CSA);
+                                       IEEE80211_QUEUE_STOP_REASON_CSA,
+                                       false);
        mutex_unlock(&local->mtx);
        sdata_unlock(sdata);
 
@@ -1705,6 +1706,8 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
 
                ndev->features |= local->hw.netdev_features;
 
+               netdev_set_default_ethtool_ops(ndev, &ieee80211_ethtool_ops);
+
                ret = register_netdevice(ndev);
                if (ret) {
                        free_netdev(ndev);
@@ -1780,7 +1783,6 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local)
        }
        mutex_unlock(&local->iflist_mtx);
        unregister_netdevice_many(&unreg_list);
-       list_del(&unreg_list);
 
        list_for_each_entry_safe(sdata, tmp, &wdev_list, list) {
                list_del(&sdata->list);
This page took 0.075669 seconds and 5 git commands to generate.