Skip to content

Commit

Permalink
modules: hostap: fix DPP build error
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
fengming-ye authored and carlescufi committed Oct 17, 2024
1 parent 4af697a commit 9e8b7bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/hostap/src/supp_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion modules/hostap/src/supp_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
/**
Expand All @@ -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 */

0 comments on commit 9e8b7bd

Please sign in to comment.