Skip to content

Commit 7f7e98e

Browse files
committed
Revert "[nrf fromlist] net: wifi: Fix DPP disabled build"
This reverts commit 330eb81. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent fb59aaf commit 7f7e98e

File tree

6 files changed

+0
-21
lines changed

6 files changed

+0
-21
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,11 @@ NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_RTS_THRESHOLD);
219219

220220
NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_AP_CONFIG_PARAM);
221221

222-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
223222
/** Request a Wi-Fi DPP operation */
224223
#define NET_REQUEST_WIFI_DPP \
225224
(_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DPP)
226225

227226
NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_DPP);
228-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
229227

230228
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_WNM
231229
/** Request a Wi-Fi BTM query */
@@ -852,7 +850,6 @@ struct wifi_ap_config_params {
852850
uint32_t max_num_sta;
853851
};
854852

855-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
856853
/** @brief Wi-Fi DPP configuration parameter */
857854
/** Wi-Fi DPP QR-CODE in string max len for SHA512 */
858855
#define WIFI_DPP_QRCODE_MAX_LEN 255
@@ -1029,8 +1026,6 @@ struct wifi_dpp_params {
10291026
};
10301027
};
10311028

1032-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
1033-
10341029
#include <zephyr/net/net_if.h>
10351030

10361031
/** Scan result callback
@@ -1237,8 +1232,6 @@ struct wifi_mgmt_ops {
12371232
* @return 0 if ok, < 0 if error
12381233
*/
12391234
int (*ap_config_params)(const struct device *dev, struct wifi_ap_config_params *params);
1240-
1241-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
12421235
/** Dispatch DPP operations by action enum, with or without arguments in string format
12431236
*
12441237
* @param dev Pointer to the device structure for the driver instance
@@ -1247,7 +1240,6 @@ struct wifi_mgmt_ops {
12471240
* @return 0 if ok, < 0 if error
12481241
*/
12491242
int (*dpp_dispatch)(const struct device *dev, struct wifi_dpp_params *params);
1250-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
12511243
/** Flush PMKSA cache entries
12521244
*
12531245
* @param dev Pointer to the device structure for the driver instance.

modules/hostap/src/supp_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,6 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
17671767
}
17681768
#endif /* CONFIG_AP */
17691769

1770-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
17711770
static const char *dpp_params_to_args_curve(int curve)
17721771
{
17731772
switch (curve) {

modules/hostap/src/supp_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ int supplicant_ap_sta_disconnect(const struct device *dev,
269269

270270
#endif /* CONFIG_AP */
271271

272-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
273272
/**
274273
* @brief Dispatch DPP operations for STA
275274
*

modules/hostap/src/supp_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ static const struct wifi_mgmt_ops mgmt_ops = {
8080
.ap_disable = supplicant_ap_disable,
8181
.ap_sta_disconnect = supplicant_ap_sta_disconnect,
8282
#endif /* CONFIG_AP */
83-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
8483
.dpp_dispatch = supplicant_dpp_dispatch,
85-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
8684
.pmksa_flush = supplicant_pmksa_flush,
8785
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
8886
.enterprise_creds = supplicant_add_enterprise_creds,

subsys/net/l2/wifi/wifi_mgmt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,6 @@ static int wifi_set_rts_threshold(uint32_t mgmt_request, struct net_if *iface,
852852

853853
NET_MGMT_REGISTER_REQUEST_HANDLER(NET_REQUEST_WIFI_RTS_THRESHOLD, wifi_set_rts_threshold);
854854

855-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
856855
static int wifi_dpp(uint32_t mgmt_request, struct net_if *iface,
857856
void *data, size_t len)
858857
{
@@ -869,8 +868,6 @@ static int wifi_dpp(uint32_t mgmt_request, struct net_if *iface,
869868

870869
NET_MGMT_REGISTER_REQUEST_HANDLER(NET_REQUEST_WIFI_DPP, wifi_dpp);
871870

872-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
873-
874871
static int wifi_pmksa_flush(uint32_t mgmt_request, struct net_if *iface,
875872
void *data, size_t len)
876873
{

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,6 @@ static int cmd_wifi_version(const struct shell *sh, size_t argc, char *argv[])
21432143
return 0;
21442144
}
21452145

2146-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
21472146
static int parse_dpp_args_auth_init(const struct shell *sh, size_t argc, char *argv[],
21482147
struct wifi_dpp_params *params)
21492148
{
@@ -2681,7 +2680,6 @@ static int cmd_wifi_dpp_reconfig(const struct shell *sh, size_t argc, char *argv
26812680
return 0;
26822681
}
26832682

2684-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
26852683
static int cmd_wifi_pmksa_flush(const struct shell *sh, size_t argc, char *argv[])
26862684
{
26872685
struct net_if *iface = net_if_get_wifi_sta();
@@ -2759,7 +2757,6 @@ SHELL_STATIC_SUBCMD_SET_CREATE(wifi_twt_ops,
27592757
SHELL_SUBCMD_SET_END
27602758
);
27612759

2762-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
27632760
SHELL_STATIC_SUBCMD_SET_CREATE(
27642761
wifi_cmd_dpp,
27652762
SHELL_CMD_ARG(configurator_add, NULL,
@@ -2836,7 +2833,6 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
28362833
cmd_wifi_dpp_reconfig, 2, 0),
28372834
SHELL_SUBCMD_SET_END
28382835
);
2839-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
28402836

28412837
SHELL_STATIC_SUBCMD_SET_CREATE(wifi_commands,
28422838
SHELL_CMD_ARG(version, NULL, "Print Wi-Fi Driver and Firmware versions\n",
@@ -2973,9 +2969,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(wifi_commands,
29732969
"<rts_threshold: rts threshold/off>.\n",
29742970
cmd_wifi_set_rts_threshold,
29752971
1, 1),
2976-
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP
29772972
SHELL_CMD(dpp, &wifi_cmd_dpp, "DPP actions\n", NULL),
2978-
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DPP */
29792973
SHELL_CMD_ARG(pmksa_flush, NULL,
29802974
"Flush PMKSA cache entries.\n",
29812975
cmd_wifi_pmksa_flush, 1, 0),

0 commit comments

Comments
 (0)