]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clean up RSN parameter setting for PASN
authorJouni Malinen <jouni@codeaurora.org>
Mon, 15 Feb 2021 21:48:04 +0000 (23:48 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 15 Feb 2021 22:47:43 +0000 (00:47 +0200)
Set conf.force_kdk_derivation within the same if block as all the other
parameters. This is used only if ssid is not NULL, so no need to have
any special handling for this parameter.

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

index 34e8b7a01f71c1af2bbd15f5fd173523aece3bb6..345c87d3599d5c8990bbf627cb2c7f7f0bd43d6f 100644 (file)
@@ -1477,11 +1477,12 @@ void wpa_supplicant_rsn_supp_set_config(struct wpa_supplicant *wpa_s,
                    (wpa_s->drv_flags2 &
                     WPA_DRIVER_FLAGS2_BEACON_PROTECTION_CLIENT))
                        conf.beacon_prot = ssid->beacon_prot;
-       }
+
 #ifdef CONFIG_PASN
 #ifdef CONFIG_TESTING_OPTIONS
-       conf.force_kdk_derivation = wpa_s->conf->force_kdk_derivation;
+               conf.force_kdk_derivation = wpa_s->conf->force_kdk_derivation;
 #endif /* CONFIG_TESTING_OPTIONS */
-#endif /* CONFIG_PASN*/
+#endif /* CONFIG_PASN */
+       }
        wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL);
 }