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_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);
}