|
@@ -950,11 +950,9 @@ static int interworking_set_hs20_params(struct wpa_supplicant *wpa_s,
|
|
|
if (!key_mgmt)
|
|
|
key_mgmt = wpa_s->conf->pmf != NO_MGMT_FRAME_PROTECTION ?
|
|
|
"WPA-EAP WPA-EAP-SHA256" : "WPA-EAP";
|
|
|
- if (wpa_config_set(ssid, "key_mgmt", key_mgmt, 0) < 0)
|
|
|
- return -1;
|
|
|
- if (wpa_config_set(ssid, "proto", "RSN", 0) < 0)
|
|
|
- return -1;
|
|
|
- if (wpa_config_set(ssid, "pairwise", "CCMP", 0) < 0)
|
|
|
+ if (wpa_config_set(ssid, "key_mgmt", key_mgmt, 0) < 0 ||
|
|
|
+ wpa_config_set(ssid, "proto", "RSN", 0) < 0 ||
|
|
|
+ wpa_config_set(ssid, "pairwise", "CCMP", 0) < 0)
|
|
|
return -1;
|
|
|
return 0;
|
|
|
}
|