aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_winreg.c
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_winreg.c
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_winreg.c')
-rw-r--r--wpa_supplicant/config_winreg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config_winreg.c b/wpa_supplicant/config_winreg.c
index deebbd9..b2078af 100644
--- a/wpa_supplicant/config_winreg.c
+++ b/wpa_supplicant/config_winreg.c
@@ -265,6 +265,8 @@ static int wpa_config_read_global(struct wpa_config *config, HKEY hk)
(int *) &config->bss_max_count);
wpa_config_read_reg_dword(hk, TEXT("filter_ssids"),
&config->filter_ssids);
+ wpa_config_read_reg_dword(hk, TEXT("max_num_sta"),
+ (int *) &config->max_num_sta);
return errors ? -1 : 0;
}
@@ -601,6 +603,8 @@ static int wpa_config_write_global(struct wpa_config *config, HKEY hk)
DEFAULT_BSS_MAX_COUNT);
wpa_config_write_reg_dword(hk, TEXT("filter_ssids"),
config->filter_ssids, 0);
+ wpa_config_write_reg_dword(hk, TEXT("max_num_sta"),
+ config->max_num_sta, DEFAULT_MAX_NUM_STA);
return 0;
}