Skip to content

Commit bc0784d

Browse files
greearbjmberg-intel
authored andcommitted
mac80211: Allow disabling SGI-20
This allows user-space (wpa_supplicant) to disable short guard interval (SGI) for 20Mhz. The SGI-40 disable option is already handled. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 694c618 commit bc0784d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎net/mac80211/ht.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
6262
__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_SUP_WIDTH_20_40);
6363
__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_SGI_40);
6464

65+
/* Allow user to disable SGI-20 (SGI-40 is handled above) */
66+
__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_SGI_20);
67+
6568
/* Allow user to disable the max-AMSDU bit. */
6669
__check_htcap_disable(sdata, ht_cap, IEEE80211_HT_CAP_MAX_AMSDU);
6770

‎net/mac80211/main.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ static const struct ieee80211_ht_cap mac80211_ht_capa_mod_mask = {
537537

538538
.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
539539
IEEE80211_HT_CAP_MAX_AMSDU |
540+
IEEE80211_HT_CAP_SGI_20 |
540541
IEEE80211_HT_CAP_SGI_40),
541542
.mcs = {
542543
.rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff,

0 commit comments

Comments
 (0)