Skip to contentSkip to conversation

mac80211: Allow disabling SGI-20.

PATCH Applied [email protected] 2 participants 2 messages Dec 13, 2012 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Allow disabling SGI-20.

From: Ben Greear <[email protected]>

This allows user-space (wpa_supplicant) to disable short guard interval (SGI) for 20Mhz. The SGI-40 disable option is already handled.

---
 net/mac80211/ht.c   |    3 +++
 net/mac80211/main.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
net/mac80211/ht.c +3 -0
index a71d891..8a6d68f 100644
@@ -62,6 +62,9 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
 	__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_SUP_WIDTH_20_40);
 	__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_SGI_40);
 
+	/* Allow user to disable SGI-20 (SGI-40 is handled above) */
+	__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_SGI_20);
+
 	/* Allow user to disable the max-AMSDU bit. */
 	__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_MAX_AMSDU);
 
net/mac80211/main.c +1 -0
index 1b087ff..0c0d4ca 100644
@@ -537,6 +537,7 @@ static const struct ieee80211_ht_cap mac80211_ht_capa_mod_mask = {
 
 	.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
 				IEEE80211_HT_CAP_MAX_AMSDU |
+				IEEE80211_HT_CAP_SGI_20 |
 				IEEE80211_HT_CAP_SGI_40),
 	.mcs = {
 		.rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff,
Signature · 1 line
1.7.3.4
maintainer Applied
#1 lore raw
Quoted 5 lines · On Wed, 2012-12-12 at 16:56 -0800, [email protected] wrote:

From: Ben Greear <[email protected]>

This allows user-space (wpa_supplicant) to disable short guard interval (SGI) for 20Mhz. The SGI-40 disable option is already handled.

Applied.

Caveat as before, I'm going to have to rebase my trees once the merge window concludes.

johannes