Skip to content

Commit a2e7495

Browse files
Pawel Kulakowskijmberg-intel
authored andcommitted
mac80211: Allow disabling LDPC
This allows user-space (wpa_supplicant) to disable LDPC coding. Signed-off-by: Pawel Kulakowski <pawel.kulakowski@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 65d26f2 commit a2e7495

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎net/mac80211/ht.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
8686
__check_htcap_disable(ht_capa, ht_capa_mask, ht_cap,
8787
IEEE80211_HT_CAP_MAX_AMSDU);
8888

89+
/* Allow user to disable LDPC */
90+
__check_htcap_disable(ht_capa, ht_capa_mask, ht_cap,
91+
IEEE80211_HT_CAP_LDPC_CODING);
92+
8993
/* Allow user to decrease AMPDU factor */
9094
if (ht_capa_mask->ampdu_params_info &
9195
IEEE80211_HT_AMPDU_PARM_FACTOR) {

‎net/mac80211/main.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ static const struct ieee80211_ht_cap mac80211_ht_capa_mod_mask = {
444444
.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
445445
IEEE80211_HT_CAP_MAX_AMSDU |
446446
IEEE80211_HT_CAP_SGI_20 |
447-
IEEE80211_HT_CAP_SGI_40),
447+
IEEE80211_HT_CAP_SGI_40 |
448+
IEEE80211_HT_CAP_LDPC_CODING),
448449
.mcs = {
449450
.rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff,
450451
0xff, 0xff, 0xff, 0xff, 0xff, },

0 commit comments

Comments
 (0)