wpa_supplicant: Set configured auth_algs for AP mode
In AP mode, authentication algorithm is reset in hostapd_config_defaults_bss() and never set to the configured one. This would pass the default auth_algs (OPEN|SHARED) to driver regardless of what the wpa_supplicant configuration is requesting. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
This commit is contained in:
parent
39185dfa54
commit
0399f2e4e5
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
|
|||
bss->ssid.ssid_len = ssid->ssid_len;
|
||||
bss->ssid.ssid_set = 1;
|
||||
|
||||
if (ssid->auth_alg)
|
||||
bss->auth_algs = ssid->auth_alg;
|
||||
|
||||
if (wpa_key_mgmt_wpa_psk(ssid->key_mgmt))
|
||||
bss->wpa = ssid->proto;
|
||||
bss->wpa_key_mgmt = ssid->key_mgmt;
|
||||
|
|
Loading…
Reference in a new issue