From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org,
"Luis R. Rodriguez" <lrodriguez@atheros.com>,
Jouni Malinen <jmalinen@atheros.com>,
Vasanthakumar Thiagarajan <vasanth@atheros.com>,
Senthil Balasubramanian <senthilkumar@atheros.com>
Subject: [PATCH] ath9k: add module option for disabling 11n functionality
Date: Tue, 28 Jun 2011 21:46:18 +0200 [thread overview]
Message-ID: <4E0A2F8A.8010102@fedoraproject.org> (raw)
Some wireless base stations implement 802.11n mode in ways that
open-source drivers cannot handle properly, resulting in very unstable
connections. This patch introduces an '11n_disable' option to the ath9k
driver, similar to the same option for the iwlagn driver.
Tested at the internal wireless network of www.cs.fau.de, where 802.11n
currently only works reliably with Windows clients.
---
drivers/net/wireless/ath/ath9k/init.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/init.c
b/drivers/net/wireless/ath/ath9k/init.c
index 616e30b..9521ca3 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -43,6 +43,10 @@ static int ath9k_btcoex_enable;
module_param_named(btcoex_enable, ath9k_btcoex_enable, int, 0444);
MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
+int ath9k_modparam_disable_11n;
+module_param_named(11n_disable, ath9k_modparam_disable_11n, int, 0444);
+MODULE_PARM_DESC(11n_disable, "disable 11n functionality");
+
bool is_ath9k_unloaded;
/* We use the hw_value as an index into our private channel structure */
@@ -231,7 +235,11 @@ static void setup_ht_cap(struct ath_softc *sc,
u8 tx_streams, rx_streams;
int i, max_streams;
- ht_info->ht_supported = true;
+ if (ath9k_modparam_disable_11n)
+ ht_info->ht_supported = false;
+ else
+ ht_info->ht_supported = true;
+
ht_info->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
IEEE80211_HT_CAP_SM_PS |
IEEE80211_HT_CAP_SGI_40 |
--
1.7.5.4
next reply other threads:[~2011-06-28 19:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 19:46 Michel Alexandre Salim [this message]
2011-06-28 19:51 ` [PATCH] ath9k: add module option for disabling 11n functionality Ben Greear
2011-06-28 20:06 ` [ath9k-devel] " Luis R. Rodriguez
2011-06-28 20:40 ` Ben Greear
2011-06-29 17:50 ` Andreas Hartmann
2011-06-28 21:57 ` Jouni Malinen
2011-06-29 1:26 ` Adrian Chadd
2011-06-29 8:56 ` Michel Alexandre Salim
2011-06-29 13:09 ` Jouni Malinen
2011-06-29 13:43 ` Michel Alexandre Salim
2011-06-29 13:55 ` Jouni Malinen
2011-06-29 14:06 ` Michel Alexandre Salim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E0A2F8A.8010102@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=ath9k-devel@lists.ath9k.org \
--cc=jmalinen@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lrodriguez@atheros.com \
--cc=senthilkumar@atheros.com \
--cc=vasanth@atheros.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).