|
@@ -975,10 +975,11 @@ void hostapd_set_security_params(struct hostapd_bss_config *bss,
|
|
bss->rsn_pairwise = WPA_CIPHER_CCMP;
|
|
bss->rsn_pairwise = WPA_CIPHER_CCMP;
|
|
} else {
|
|
} else {
|
|
bss->ssid.security_policy = SECURITY_PLAINTEXT;
|
|
bss->ssid.security_policy = SECURITY_PLAINTEXT;
|
|
- bss->wpa_group = WPA_CIPHER_NONE;
|
|
|
|
- bss->wpa_pairwise = WPA_CIPHER_NONE;
|
|
|
|
- bss->rsn_pairwise = WPA_CIPHER_NONE;
|
|
|
|
- if (full_config)
|
|
|
|
|
|
+ if (full_config) {
|
|
|
|
+ bss->wpa_group = WPA_CIPHER_NONE;
|
|
|
|
+ bss->wpa_pairwise = WPA_CIPHER_NONE;
|
|
|
|
+ bss->rsn_pairwise = WPA_CIPHER_NONE;
|
|
bss->wpa_key_mgmt = WPA_KEY_MGMT_NONE;
|
|
bss->wpa_key_mgmt = WPA_KEY_MGMT_NONE;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|