Commit 838ff13f authored by Maochen Wang's avatar Maochen Wang Committed by Anas Nashif
Browse files

hostap: fix other STA failed to connect to SAP



The format of wpa_passphrase and sae_password is wrong when start the
SAP, which leads the invaild MIC check error when other STA try to
connect in security mode. Change the wrong format can fix this issue.

Signed-off-by: default avatarMaochen Wang <maochen.wang@nxp.com>
parent 23871f6e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1444,7 +1444,7 @@ int hapd_config_network(struct hostapd_iface *iface,
			if (!hostapd_cli_cmd_v("set wpa_key_mgmt WPA-PSK")) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set wpa_passphrase \"%s\"", params->psk)) {
			if (!hostapd_cli_cmd_v("set wpa_passphrase %s", params->psk)) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set wpa_pairwise CCMP")) {
@@ -1457,7 +1457,7 @@ int hapd_config_network(struct hostapd_iface *iface,
			if (!hostapd_cli_cmd_v("set wpa_key_mgmt WPA-PSK")) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set wpa_passphrase \"%s\"", params->psk)) {
			if (!hostapd_cli_cmd_v("set wpa_passphrase %s", params->psk)) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set rsn_pairwise CCMP")) {
@@ -1470,7 +1470,7 @@ int hapd_config_network(struct hostapd_iface *iface,
			if (!hostapd_cli_cmd_v("set wpa_key_mgmt WPA-PSK-SHA256")) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set wpa_passphrase \"%s\"", params->psk)) {
			if (!hostapd_cli_cmd_v("set wpa_passphrase %s", params->psk)) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set rsn_pairwise CCMP")) {
@@ -1483,7 +1483,7 @@ int hapd_config_network(struct hostapd_iface *iface,
			if (!hostapd_cli_cmd_v("set wpa_key_mgmt SAE")) {
				goto out;
			}
			if (!hostapd_cli_cmd_v("set sae_password \"%s\"",
			if (!hostapd_cli_cmd_v("set sae_password %s",
					       params->sae_password ? params->sae_password :
					       params->psk)) {
				goto out;