]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Move the "WPA: AP key_mgmt" debug print to be after final changes
authorJouni Malinen <jouni@codeaurora.org>
Fri, 13 Mar 2020 18:01:53 +0000 (20:01 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 13 Mar 2020 18:01:53 +0000 (20:01 +0200)
Driver capabilities may end up masking out some WPA_KEY_MGMT_* bits, so
debug print the outcome only after having performed all these steps.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_supplicant.c

index 44c34f041bf89646178686d2b9232f3adf76ab3d..02895054f202451915acd9a685b3a96e77bc9080 100644 (file)
@@ -1457,9 +1457,6 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
 #endif /* CONFIG_NO_WPA */
 
        sel = ie.key_mgmt & ssid->key_mgmt;
-       wpa_dbg(wpa_s, MSG_DEBUG,
-               "WPA: AP key_mgmt 0x%x network profile key_mgmt 0x%x; available key_mgmt 0x%x",
-               ie.key_mgmt, ssid->key_mgmt, sel);
 #ifdef CONFIG_SAE
        if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SAE))
                sel &= ~(WPA_KEY_MGMT_SAE | WPA_KEY_MGMT_FT_SAE);
@@ -1469,6 +1466,9 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
                                  WPA_DRIVER_FLAGS_UPDATE_FT_IES)))
                sel &= ~WPA_KEY_MGMT_FT;
 #endif /* CONFIG_IEEE80211R */
+       wpa_dbg(wpa_s, MSG_DEBUG,
+               "WPA: AP key_mgmt 0x%x network profile key_mgmt 0x%x; available key_mgmt 0x%x",
+               ie.key_mgmt, ssid->key_mgmt, sel);
        if (0) {
 #ifdef CONFIG_IEEE80211R
 #ifdef CONFIG_SHA384