Skip to content

Commit 865a90c

Browse files
committed
[nrf fromtree] net: wifi: Fix DPP disabled build
In case WPA supplicant disabled DPP, we need to compile out the corresponding DPP code in Wi-Fi shell too. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit 1da74ef)
1 parent 24a8edc commit 865a90c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ struct wifi_dpp_params {
10281028
char resp[WIFI_DPP_QRCODE_MAX_LEN + 1];
10291029
};
10301030
};
1031+
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
10311032

10321033
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
10331034

modules/hostap/src/supp_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,7 @@ int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *pa
20572057
os_free(cmd);
20582058
return 0;
20592059
}
2060+
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
20602061

20612062
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
20622063
int hapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params)

modules/hostap/src/supp_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
278278
* @return 0 for OK; -1 for ERROR
279279
*/
280280
int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params);
281+
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
281282

282283
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
283284
/**

0 commit comments

Comments
 (0)