mac80211: disable ath6kl until it's packaged and used somewhere
[openwrt.git] / package / mac80211 / patches / 300-pending_work.patch
index 83edd7e6b417bffbeb4abf31077712a64d45c639..d401b54bbdfce725eb94326d1bad8b76a09c45f8 100644 (file)
        WLAN_STA_CLEAR_PS_FILT,
        WLAN_STA_MFP,
        WLAN_STA_BLOCK_BA,
+--- a/net/mac80211/rate.h
++++ b/net/mac80211/rate.h
+@@ -37,7 +37,7 @@ static inline void rate_control_tx_statu
+       struct ieee80211_sta *ista = &sta->sta;
+       void *priv_sta = sta->rate_ctrl_priv;
+-      if (!ref)
++      if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL))
+               return;
+       ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb);
+--- a/net/mac80211/main.c
++++ b/net/mac80211/main.c
+@@ -915,6 +915,8 @@ int ieee80211_register_hw(struct ieee802
+               wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n",
+                           result);
++      ieee80211_led_init(local);
++
+       rtnl_lock();
+       result = ieee80211_init_rate_ctrl_alg(local,
+@@ -936,8 +938,6 @@ int ieee80211_register_hw(struct ieee802
+       rtnl_unlock();
+-      ieee80211_led_init(local);
+-
+       local->network_latency_notifier.notifier_call =
+               ieee80211_max_network_latency;
+       result = pm_qos_add_notifier(PM_QOS_NETWORK_LATENCY,