aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-10-19 14:08:20 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-19 14:08:20 (GMT)
commitdae608d5d3373845ad46f84def12364c8a6a4159 (patch)
tree5a9bd16420548d1c34f65fb3a28125a2597a756f /wpa_supplicant/config.h
parent59eba7a2b3343c4fc3ae13e65f37ae73ad36ce22 (diff)
downloadhostap-dae608d5d3373845ad46f84def12364c8a6a4159.zip
hostap-dae608d5d3373845ad46f84def12364c8a6a4159.tar.gz
hostap-dae608d5d3373845ad46f84def12364c8a6a4159.tar.bz2
Add max_num_sta config option for wpa_supplicant AP mode
This can be used to limit the number of stations allowed to be connected to the AP.
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 246c65f..ff4cf22 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -25,6 +25,7 @@
#define DEFAULT_P2P_GO_INTENT 7
#define DEFAULT_P2P_INTRA_BSS 1
#define DEFAULT_BSS_MAX_COUNT 200
+#define DEFAULT_MAX_NUM_STA 128
#include "config_ssid.h"
@@ -379,6 +380,11 @@ struct wpa_config {
int filter_ssids;
/**
+ * max_num_sta - Maximum number of STAs in an AP/P2P GO
+ */
+ unsigned int max_num_sta;
+
+ /**
* changed_parameters - Bitmap of changed parameters since last update
*/
unsigned int changed_parameters;