Skip to content

Commit dedbedd

Browse files
fengming-yekrish2718
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit 9e8b7bd)
1 parent c6cbf56 commit dedbedd

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

modules/hostap/src/supp_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,6 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
21372137
os_free(cmd);
21382138
return 0;
21392139
}
2140-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
21412140

21422141
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
21432142
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)

modules/hostap/src/supp_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
287287
* @return 0 for OK; -1 for ERROR
288288
*/
289289
int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
290-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
291290

292291
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
293292
/**

0 commit comments

Comments
 (0)