diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 2ea9279fc..c1f32d8fc 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -543,7 +543,7 @@ wpa_supplicant_select_bss_non_wpa(struct wpa_supplicant *wpa_s, "BSSID mismatch"); continue; } - + if (!(ssid->key_mgmt & WPA_KEY_MGMT_NONE) && !(ssid->key_mgmt & WPA_KEY_MGMT_WPS) && !(ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA)) @@ -553,7 +553,7 @@ wpa_supplicant_select_bss_non_wpa(struct wpa_supplicant *wpa_s, continue; } - if ((ssid->key_mgmt & + if ((ssid->key_mgmt & (WPA_KEY_MGMT_IEEE8021X | WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_FT_IEEE8021X | WPA_KEY_MGMT_FT_PSK | WPA_KEY_MGMT_IEEE8021X_SHA256 | diff --git a/wpa_supplicant/mlme.c b/wpa_supplicant/mlme.c index e894c464c..f9c28f1c9 100644 --- a/wpa_supplicant/mlme.c +++ b/wpa_supplicant/mlme.c @@ -1781,7 +1781,6 @@ static void ieee80211_rx_mgmt_ft_action(struct wpa_supplicant *wpa_s, wpa_printf(MSG_DEBUG, "MLME: Foreign STA Address " MACSTR " in FT Action Response", MAC2STR(sta_addr)); return; - } if (status) { diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index c68dd825b..80fdb486b 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2050,7 +2050,7 @@ struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global, os_free(wpa_s); return NULL; } - + wpa_s->next = global->ifaces; global->ifaces = wpa_s;