Skip to contentSkip to conversation

ath9k/AR9380: Is it possible to increase the number of supported BSS

ath9k-devel michael-dev 1 participant 2 messages Dec 13, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

currently ath9k is limited to at most 8 BSS in AP-Mode. Would it be possible to increase this limit or is it a hardware limitation?

Thanks,
M. Braun

#1 lore raw

Hi,

to whom it may concern.

I'm currently using the following patch and it seems to work for me using 12 BSS (just some short superficial testing). Not sure if BSTUCK_THRESH modification is needed.
No warranty given ;)

Regards,
M. Braun

--- compat-wireless-2013-11-05/drivers/net/wireless/ath/ath9k/init.c

2013-12-12 22:16:49.905847035 +0100
+++ compat-wireless-2013-11-05/drivers/net/wireless/ath/ath9k/init.c    
2013-12-12 22:16:59.122863038 +0100
@@ -843,7 +843,7 @@
         { .max = 2048,  .types = BIT(NL80211_IFTYPE_STATION) |
                                  BIT(NL80211_IFTYPE_P2P_CLIENT) |
                                  BIT(NL80211_IFTYPE_WDS) },
-       { .max = 8,     .types =
+       { .max = 16,    .types =
  #ifdef CPTCFG_MAC80211_MESH
                                  BIT(NL80211_IFTYPE_MESH_POINT) |
  #endif
--- compat-wireless-2013-11-05/drivers/net/wireless/ath/ath9k/ath9k.h   
2013-12-13 10:03:08.957657934 +0100
+++ compat-wireless-2013-11-05/drivers/net/wireless/ath/ath9k/ath9k.h   
2013-12-13 10:03:32.212694050 +0100

@@ -381,8 +381,8 @@
* number of BSSIDs) if a given beacon does not go out even after
waiting this
* number of beacon intervals, the game's up.
*/
-#define BSTUCK_THRESH 9
-#define ATH_BCBUF 8
+#define BSTUCK_THRESH 17
+#define ATH_BCBUF 16
#define ATH_DEFAULT_BINTVAL 100 /* TU */
#define ATH_DEFAULT_BMISS_LIMIT 10
#define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024)