linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath9k: add module option for disabling 11n functionality
@ 2011-06-28 19:46 Michel Alexandre Salim
  2011-06-28 19:51 ` Ben Greear
  2011-06-28 21:57 ` Jouni Malinen
  0 siblings, 2 replies; 12+ messages in thread
From: Michel Alexandre Salim @ 2011-06-28 19:46 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, ath9k-devel, Luis R. Rodriguez, Jouni Malinen,
	Vasanthakumar Thiagarajan, Senthil Balasubramanian

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-06-29 17:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-28 19:46 [PATCH] ath9k: add module option for disabling 11n functionality Michel Alexandre Salim
2011-06-28 19:51 ` 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

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).