Fix RSN parameter setting for multi-BSS case

rsn_pairwise and wpa_group were set properly only for the last BSS, but
they do need to be set for all BSSes.
This commit is contained in:
Jouni Malinen 2009-04-02 19:54:13 +03:00 committed by Jouni Malinen
parent d2440ba01b
commit f1f54cb8b1

View file

@ -2269,13 +2269,17 @@ struct hostapd_config * hostapd_config_read(const char *fname)
fclose(f);
for (i = 0; i < conf->num_bss; i++) {
bss = &conf->bss[i];
if (bss->individual_wep_key_len == 0) {
/* individual keys are not use; can use key idx0 for broadcast
* keys */
/* individual keys are not use; can use key idx0 for
* broadcast keys */
bss->broadcast_key_idx_min = 0;
}
/* Select group cipher based on the enabled pairwise cipher suites */
/* Select group cipher based on the enabled pairwise cipher
* suites */
pairwise = 0;
if (bss->wpa & 1)
pairwise |= bss->wpa_pairwise;
@ -2289,9 +2293,6 @@ struct hostapd_config * hostapd_config_read(const char *fname)
else
bss->wpa_group = WPA_CIPHER_CCMP;
for (i = 0; i < conf->num_bss; i++) {
bss = &conf->bss[i];
bss->radius->auth_server = bss->radius->auth_servers;
bss->radius->acct_server = bss->radius->acct_servers;