* [PATCH] mac80211: Allow disabling LDPC
@ 2014-04-01 5:13 Pawel Kulakowski
2014-04-08 8:39 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Pawel Kulakowski @ 2014-04-01 5:13 UTC (permalink / raw
To: linux-wireless; +Cc: johannes, Pawel Kulakowski
This allows user-space (wpa_supplicant) to disable LDPC coding.
Signed-off-by: Pawel Kulakowski <pawel.kulakowski@tieto.com>
---
net/mac80211/ht.c | 4 ++++
net/mac80211/main.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c
index c150b68..1495b9e 100644
--- a/net/mac80211/ht.c
+++ b/net/mac80211/ht.c
@@ -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,
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 */
if (ht_capa_mask->ampdu_params_info &
IEEE80211_HT_AMPDU_PARM_FACTOR) {
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index b055f6a5..cfc24e9 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -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 |
IEEE80211_HT_CAP_MAX_AMSDU |
IEEE80211_HT_CAP_SGI_20 |
- IEEE80211_HT_CAP_SGI_40),
+ IEEE80211_HT_CAP_SGI_40 |
+ IEEE80211_HT_CAP_LDPC_CODING),
.mcs = {
.rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, },
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: Allow disabling LDPC
2014-04-01 5:13 [PATCH] mac80211: Allow disabling LDPC Pawel Kulakowski
@ 2014-04-08 8:39 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2014-04-08 8:39 UTC (permalink / raw
To: Pawel Kulakowski; +Cc: linux-wireless
On Tue, 2014-04-01 at 07:13 +0200, Pawel Kulakowski wrote:
> This allows user-space (wpa_supplicant) to disable LDPC coding.
Applied.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-08 8:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 5:13 [PATCH] mac80211: Allow disabling LDPC Pawel Kulakowski
2014-04-08 8:39 ` Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.