|
25 | 25 | #include "esp_hosted_rpc.h" |
26 | 26 | #include "esp_hosted_transport.h" |
27 | 27 | #include "esp_hosted_bitmasks.h" |
28 | | -#include "esp_idf_version.h" |
29 | | - |
30 | | -/* ESP-IDF 5.5.0: renamed reserved fields to reserved1/reserved2 */ |
31 | | -#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0) |
32 | | -#define H_WIFI_NEW_RESERVED_FIELD_NAMES 1 |
33 | | -#define H_PRESENT_IN_ESP_IDF_5_5_0 1 |
34 | | -#else |
35 | | -#define H_WIFI_NEW_RESERVED_FIELD_NAMES 0 |
36 | | -#define H_PRESENT_IN_ESP_IDF_5_5_0 0 |
37 | | -#endif |
38 | | - |
39 | | -#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0) |
40 | | -#define H_PRESENT_IN_ESP_IDF_5_4_0 1 |
41 | | -#else |
42 | | -#define H_PRESENT_IN_ESP_IDF_5_4_0 0 |
43 | | -#endif |
| 28 | +#include "slave_wifi_config.h" |
44 | 29 |
|
45 | 30 | /* Slave-side: Always support reserved field decoding for maximum compatibility |
46 | 31 | * The host may or may not have CONFIG_ESP_HOSTED_DECODE_WIFI_RESERVED_FIELD enabled |
@@ -969,7 +954,9 @@ static esp_err_t req_wifi_set_config(Rpc *req, Rpc *resp, void *priv_data) |
969 | 954 | p_a_ap->pmf_cfg.required = p_c_ap->pmf_cfg->required; |
970 | 955 | } |
971 | 956 | p_a_ap->sae_pwe_h2e = p_c_ap->sae_pwe_h2e; |
| 957 | +#if H_GOT_AP_CONFIG_PARAM_TRANSITION_DISABLE |
972 | 958 | p_a_ap->transition_disable = p_c_ap->transition_disable; |
| 959 | +#endif |
973 | 960 | #if H_PRESENT_IN_ESP_IDF_5_5_0 |
974 | 961 | p_a_ap->sae_ext = p_c_ap->sae_ext; |
975 | 962 | if (p_c_ap->bss_max_idle_cfg) { |
@@ -1133,7 +1120,9 @@ static esp_err_t req_wifi_get_config(Rpc *req, Rpc *resp, void *priv_data) |
1133 | 1120 | p_c_ap->pmf_cfg->capable = p_a_ap->pmf_cfg.capable; |
1134 | 1121 | p_c_ap->pmf_cfg->required = p_a_ap->pmf_cfg.required; |
1135 | 1122 | p_c_ap->sae_pwe_h2e = p_a_ap->sae_pwe_h2e; |
| 1123 | +#if H_GOT_AP_CONFIG_PARAM_TRANSITION_DISABLE |
1136 | 1124 | p_c_ap->transition_disable = p_a_ap->transition_disable; |
| 1125 | +#endif |
1137 | 1126 | #if H_PRESENT_IN_ESP_IDF_5_5_0 |
1138 | 1127 | p_c_ap->sae_ext = p_a_ap->sae_ext; |
1139 | 1128 | RPC_ALLOC_ELEMENT(WifiBssMaxIdleConfig, p_c_ap->bss_max_idle_cfg, wifi_bss_max_idle_config__init); |
|
0 commit comments