Skip to content

Commit a8fd8d5

Browse files
committed
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: Fengming Ye <[email protected]>
1 parent 82a192c commit a8fd8d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/hostap/src/supp_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,6 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
22182218
os_free(cmd);
22192219
return 0;
22202220
}
2221-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
22222221

22232222
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
22242223
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)
@@ -2252,3 +2251,4 @@ int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)
22522251
return 0;
22532252
}
22542253
#endif /* CONFIG_WIFI_NM_HOSTAPD_AP */
2254+
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */

modules/hostap/src/supp_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
296296
* @return 0 for OK; -1 for ERROR
297297
*/
298298
int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
299-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
300299

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

0 commit comments

Comments
 (0)