summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/510-ath9k_use_minstrel.patch
blob: 4dd81ce1c4f0bfc8b288f5e3e9e23b0cacf8d8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -689,7 +689,11 @@ void ath9k_set_hw_capab(struct ath_softc
 	hw->sta_data_size = sizeof(struct ath_node);
 	hw->vif_data_size = sizeof(struct ath_vif);
 
+#ifdef ATH9K_USE_MINSTREL
+	hw->rate_control_algorithm = "minstrel_ht";
+#else
 	hw->rate_control_algorithm = "ath9k_rate_control";
+#endif
 
 	if (test_bit(ATH9K_MODE_11G, sc->sc_ah->caps.wireless_modes))
 		hw->wiphy->bands[IEEE80211_BAND_2GHZ] =