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

Commit a2e7495d authored by Pawel Kulakowski's avatar Pawel Kulakowski Committed by Johannes Berg
Browse files

mac80211: Allow disabling LDPC



This allows user-space (wpa_supplicant) to disable LDPC coding.

Signed-off-by: default avatarPawel Kulakowski <pawel.kulakowski@tieto.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 65d26f29
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,10 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
	__check_htcap_disable(ht_capa, ht_capa_mask, ht_cap,
	__check_htcap_disable(ht_capa, ht_capa_mask, ht_cap,
			      IEEE80211_HT_CAP_MAX_AMSDU);
			      IEEE80211_HT_CAP_MAX_AMSDU);


	/* Allow user to disable LDPC */
	__check_htcap_disable(ht_capa, ht_capa_mask, ht_cap,
			      IEEE80211_HT_CAP_LDPC_CODING);

	/* Allow user to decrease AMPDU factor */
	/* Allow user to decrease AMPDU factor */
	if (ht_capa_mask->ampdu_params_info &
	if (ht_capa_mask->ampdu_params_info &
	    IEEE80211_HT_AMPDU_PARM_FACTOR) {
	    IEEE80211_HT_AMPDU_PARM_FACTOR) {
+2 −1
Original line number Original line Diff line number Diff line
@@ -444,7 +444,8 @@ static const struct ieee80211_ht_cap mac80211_ht_capa_mod_mask = {
	.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
	.cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
				IEEE80211_HT_CAP_MAX_AMSDU |
				IEEE80211_HT_CAP_MAX_AMSDU |
				IEEE80211_HT_CAP_SGI_20 |
				IEEE80211_HT_CAP_SGI_20 |
				IEEE80211_HT_CAP_SGI_40),
				IEEE80211_HT_CAP_SGI_40 |
				IEEE80211_HT_CAP_LDPC_CODING),
	.mcs = {
	.mcs = {
		.rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff,
		.rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff,
			     0xff, 0xff, 0xff, 0xff, 0xff, },
			     0xff, 0xff, 0xff, 0xff, 0xff, },