Commit 9e8b7bd3 authored by Fengming Ye's avatar Fengming Ye Committed by Carles Cufi
Browse files

modules: hostap: fix DPP build error

Fix DPP build error when HOSTAPD enabled and DPP disabled.
Guard hapd_dpp_dispatch in both CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
and CONFIG_WIFI_NM_HOSTAPD_AP.

Signed-off-by: default avatarFengming Ye <frank.ye@nxp.com>
parent 4af697ad
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/hostap/src/supp_api.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2220,7 +2220,6 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
	os_free(cmd);
	return 0;
}
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */

#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)
@@ -2254,3 +2253,4 @@ int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)
	return 0;
}
#endif /* CONFIG_WIFI_NM_HOSTAPD_AP */
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
+1 −1
Changes for modules/hostap/src/supp_api.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -296,7 +296,6 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
 * @return 0 for OK; -1 for ERROR
 */
int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */

#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
/**
@@ -308,4 +307,5 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
 */
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
#endif /* CONFIG_WIFI_NM_HOSTAPD_AP */
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
#endif /* ZEPHYR_SUPP_MGMT_H */