aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_winreg.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-05 18:20:09 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-05 18:20:09 (GMT)
commitc9c38b099689616111416af9df3a4882535edff3 (patch)
tree75e5e38964543805a720bd45f20be1cede486e35 /wpa_supplicant/config_winreg.c
parentac26ebd8b5de0aea409bd896235325a64ff27e1f (diff)
downloadhostap-c9c38b099689616111416af9df3a4882535edff3.zip
hostap-c9c38b099689616111416af9df3a4882535edff3.tar.gz
hostap-c9c38b099689616111416af9df3a4882535edff3.tar.bz2
Make maximum BSS table size configurable
New global configuration parameter bss_max_count can now be used to change the maximum BSS table size. The old fixed size limit (200) is used as the default value for this parameter.
Diffstat (limited to 'wpa_supplicant/config_winreg.c')
-rw-r--r--wpa_supplicant/config_winreg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/config_winreg.c b/wpa_supplicant/config_winreg.c
index 6bd003b..6c25073 100644
--- a/wpa_supplicant/config_winreg.c
+++ b/wpa_supplicant/config_winreg.c
@@ -257,6 +257,9 @@ static int wpa_config_read_global(struct wpa_config *config, HKEY hk)
&config->wps_cred_processing);
#endif /* CONFIG_WPS */
+ wpa_config_read_reg_dword(hk, TEXT("bss_max_count"),
+ &config->bss_max_count);
+
return errors ? -1 : 0;
}
@@ -583,6 +586,10 @@ static int wpa_config_write_global(struct wpa_config *config, HKEY hk)
config->wps_cred_processing, 0);
#endif /* CONFIG_WPS */
+ wpa_config_write_reg_dword(hk, TEXT("bss_max_count"),
+ config->bss_max_count,
+ DEFAULT_BSS_MAX_COUNT);
+
return 0;
}