ath9k: add more pending fixes from linux-wireless@
authorFelix Fietkau <nbd@openwrt.org>
Thu, 30 Dec 2010 15:48:39 +0000 (15:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 30 Dec 2010 15:48:39 +0000 (15:48 +0000)
SVN-Revision: 24858

package/mac80211/patches/310-ath9k_pending_work.patch
package/mac80211/patches/510-ath9k_led_cleanup.patch
package/mac80211/patches/531-ath9k_legacy_chainmask_fix.patch

index 7278551d188b6329f16c7bcf90b00db537b30285..eee9238b1e9eddc1bb3ab3c981f1a80eeb3d42ed 100644 (file)
                spin_unlock_bh(&txq->axq_lock);
  
                txok = !(txs.ts_status & ATH9K_TXERR_MASK);
+--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
++++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+@@ -714,8 +714,7 @@ static void ath9k_set_hw_capab(struct at
+               IEEE80211_HW_HAS_RATE_CONTROL |
+               IEEE80211_HW_RX_INCLUDES_FCS |
+               IEEE80211_HW_SUPPORTS_PS |
+-              IEEE80211_HW_PS_NULLFUNC_STACK |
+-              IEEE80211_HW_NEED_DTIM_PERIOD;
++              IEEE80211_HW_PS_NULLFUNC_STACK;
+       hw->wiphy->interface_modes =
+               BIT(NL80211_IFTYPE_STATION) |
+--- a/drivers/net/wireless/ath/ath9k/init.c
++++ b/drivers/net/wireless/ath/ath9k/init.c
+@@ -646,8 +646,7 @@ void ath9k_set_hw_capab(struct ath_softc
+               IEEE80211_HW_SUPPORTS_PS |
+               IEEE80211_HW_PS_NULLFUNC_STACK |
+               IEEE80211_HW_SPECTRUM_MGMT |
+-              IEEE80211_HW_REPORTS_TX_ACK_STATUS |
+-              IEEE80211_HW_NEED_DTIM_PERIOD;
++              IEEE80211_HW_REPORTS_TX_ACK_STATUS;
+       if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT)
+                hw->flags |= IEEE80211_HW_AMPDU_AGGREGATION;
+--- a/drivers/net/wireless/ath/ath9k/main.c
++++ b/drivers/net/wireless/ath/ath9k/main.c
+@@ -285,7 +285,8 @@ int ath_set_channel(struct ath_softc *sc
+       ath9k_hw_set_interrupts(ah, ah->imask);
+       if (!(sc->sc_flags & (SC_OP_OFFCHANNEL))) {
+-              ath_beacon_config(sc, NULL);
++              if (sc->sc_flags & SC_OP_BEACONS)
++                      ath_beacon_config(sc, NULL);
+               ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0);
+               ath_start_ani(common);
+       }
index be26a883cfe2d27e48ea3ff53d01dfc6c968aba0..626bc0c2d8fe30107ec8f9886f4edcb9548a17cf 100644 (file)
  /*    Rfkill     */
 --- a/drivers/net/wireless/ath/ath9k/main.c
 +++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -1295,9 +1295,6 @@ static void ath9k_stop(struct ieee80211_
+@@ -1296,9 +1296,6 @@ static void ath9k_stop(struct ieee80211_
  
        aphy->state = ATH_WIPHY_INACTIVE;
  
  static void ath9k_deinit_softc(struct ath_softc *sc);
  
  /*
-@@ -746,6 +761,13 @@ int ath9k_init_device(u16 devid, struct 
+@@ -745,6 +760,13 @@ int ath9k_init_device(u16 devid, struct 
  
        ath9k_init_txpower_limits(sc);
  
index df7e5cbbf3c1c095750aadf4c8d7f8df85196ae2..a2968b29ba4ea7213bbab2267cad53b5ba4e88c9 100644 (file)
@@ -10,7 +10,7 @@
  
 --- a/drivers/net/wireless/ath/ath9k/main.c
 +++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -538,32 +538,6 @@ set_timer:
+@@ -539,32 +539,6 @@ set_timer:
        }
  }
  
@@ -43,7 +43,7 @@
  static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta)
  {
        struct ath_node *an;
-@@ -1676,8 +1650,6 @@ static int ath9k_config(struct ieee80211
+@@ -1677,8 +1651,6 @@ static int ath9k_config(struct ieee80211
                /* XXX: remove me eventualy */
                ath9k_update_ichannel(sc, hw, &sc->sc_ah->channels[pos]);
  
@@ -52,7 +52,7 @@
                /* update survey stats for the old channel before switching */
                spin_lock_irqsave(&common->cc_lock, flags);
                ath_update_survey_stats(sc);
-@@ -1909,10 +1881,6 @@ static void ath9k_bss_info_changed(struc
+@@ -1910,10 +1882,6 @@ static void ath9k_bss_info_changed(struc
                /* Set aggregation protection mode parameters */
                sc->config.ath_aggr_prot = 0;