Skip to content

Commit

Permalink
[nrf fromtree] 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]>
(cherry picked from commit 9e8b7bd)
  • Loading branch information
fengming-ye authored and krish2718 committed Oct 21, 2024
1 parent c6cbf56 commit dedbedd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion modules/hostap/src/supp_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,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
1 change: 0 additions & 1 deletion modules/hostap/src/supp_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,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 Down

0 comments on commit dedbedd

Please sign in to comment.