Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd006395 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Update short guard interval in rate control



The rate control algorithm needs to know if a STA allows
short guard interval, fixing this allows RC to use the correct
table.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6642fe6f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1361,6 +1361,8 @@ static void ath_rc_init(struct ath_softc *sc,
		ath_rc_priv->ht_cap = (WLAN_RC_HT_FLAG | WLAN_RC_DS_FLAG);
		ath_rc_priv->ht_cap = (WLAN_RC_HT_FLAG | WLAN_RC_DS_FLAG);
		if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)
		if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)
			ath_rc_priv->ht_cap |= WLAN_RC_40_FLAG;
			ath_rc_priv->ht_cap |= WLAN_RC_40_FLAG;
		if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)
			ath_rc_priv->ht_cap |= WLAN_RC_SGI_FLAG;
	}
	}


	/* Initial rate table size. Will change depending
	/* Initial rate table size. Will change depending