Skip to content

Commit 19ed9d0

Browse files
committed
fix(v5.4): Per v5.4 docker image
1 parent 30c6c9f commit 19ed9d0

File tree

11 files changed

+16
-147
lines changed

11 files changed

+16
-147
lines changed

components/esp_wifi_remote/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ menu "Wi-Fi Remote"
1212
if ESP_IDF_VERSION>"5.3"
1313
orsource "./Kconfig.$IDF_VERSION.in"
1414
endif
15-
if ESP_IDF_VERSION<="5.3"
15+
if ESP_IDF_VERSION="5.3"
1616
rsource "./idf_v5.3/Kconfig.in"
1717
endif
1818

components/esp_wifi_remote/idf_v5.4/Kconfig.wifi.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ config WIFI_RMT_WAPI_PSK
522522
config WIFI_RMT_SUITE_B_192
523523
bool "Enable NSA suite B support with 192 bit key"
524524
default n
525-
depends on WIFI_RMT_ENTERPRISE_SUPPORT
526525
depends on SLAVE_SOC_WIFI_GCMP_SUPPORT
527526
select WIFI_RMT_GCMP_SUPPORT
528527
select WIFI_RMT_GMAC_SUPPORT

components/esp_wifi_remote/idf_v5.4/esp_wifi_remote_weak.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,3 @@ WEAK esp_err_t esp_wifi_remote_get_bandwidths(wifi_interface_t ifx, wifi_bandwid
435435
{
436436
LOG_UNSUPPORTED_AND_RETURN(ESP_ERR_NOT_SUPPORTED);
437437
}
438-
439-
WEAK esp_err_t esp_wifi_remote_action_tx_req(wifi_action_tx_req_t *req)
440-
{
441-
LOG_UNSUPPORTED_AND_RETURN(ESP_ERR_NOT_SUPPORTED);
442-
}
443-
444-
WEAK esp_err_t esp_wifi_remote_remain_on_channel(wifi_roc_req_t *req)
445-
{
446-
LOG_UNSUPPORTED_AND_RETURN(ESP_ERR_NOT_SUPPORTED);
447-
}

components/esp_wifi_remote/idf_v5.4/esp_wifi_with_remote.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -431,13 +431,3 @@ esp_err_t esp_wifi_get_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t *bw)
431431
{
432432
return esp_wifi_remote_get_bandwidths(ifx, bw);
433433
}
434-
435-
esp_err_t esp_wifi_action_tx_req(wifi_action_tx_req_t *req)
436-
{
437-
return esp_wifi_remote_action_tx_req(req);
438-
}
439-
440-
esp_err_t esp_wifi_remain_on_channel(wifi_roc_req_t *req)
441-
{
442-
return esp_wifi_remote_remain_on_channel(req);
443-
}

components/esp_wifi_remote/idf_v5.4/include/esp_wifi_remote_api.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ esp_err_t esp_wifi_remote_set_protocols(wifi_interface_t ifx, wifi_protocols_t *
9595
esp_err_t esp_wifi_remote_get_protocols(wifi_interface_t ifx, wifi_protocols_t *protocols);
9696
esp_err_t esp_wifi_remote_set_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t *bw);
9797
esp_err_t esp_wifi_remote_get_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t *bw);
98-
esp_err_t esp_wifi_remote_action_tx_req(wifi_action_tx_req_t *req);
99-
esp_err_t esp_wifi_remote_remain_on_channel(wifi_roc_req_t *req);
10098

10199
#ifdef __cplusplus
102100
}

components/esp_wifi_remote/idf_v5.4/include/injected/esp_wifi.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ esp_err_t esp_wifi_get_promiscuous_ctrl_filter(wifi_promiscuous_filter_t *filter
989989
* - ESP_ERR_WIFI_MODE: invalid mode
990990
* - ESP_ERR_WIFI_PASSWORD: invalid password
991991
* - ESP_ERR_WIFI_NVS: WiFi internal NVS error
992-
* - ESP_ERR_WIFI_STATE: WiFi still connecting when invoke esp_wifi_set_config
993992
* - others: refer to the error code in esp_err.h
994993
*/
995994
esp_err_t esp_wifi_set_config(wifi_interface_t interface, wifi_config_t *conf);
@@ -1790,29 +1789,6 @@ esp_err_t esp_wifi_set_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t* bw);
17901789
*/
17911790
esp_err_t esp_wifi_get_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t *bw);
17921791

1793-
/**
1794-
* @brief Send action frame on target channel
1795-
*
1796-
* @param req action tx request structure containing relevant fields
1797-
*
1798-
* @return
1799-
* - ESP_OK: succeed
1800-
* - ESP_ERR_NO_MEM: failed to allocate memory
1801-
* - ESP_FAIL: failed to send frame
1802-
*/
1803-
esp_err_t esp_wifi_action_tx_req(wifi_action_tx_req_t *req);
1804-
1805-
/**
1806-
* @brief Remain on the target channel for required duration
1807-
*
1808-
* @param req roc request structure containing relevant fields
1809-
*
1810-
* @return
1811-
* - ESP_OK: succeed
1812-
* - ESP_ERR_NO_MEM: failed to allocate memory
1813-
* - ESP_FAIL: failed to perform roc operation
1814-
*/
1815-
esp_err_t esp_wifi_remain_on_channel(wifi_roc_req_t * req);
18161792
#ifdef __cplusplus
18171793
}
18181794
#endif

components/esp_wifi_remote/idf_v5.4/include/injected/esp_wifi_types_generic.h

Lines changed: 15 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,12 @@ typedef enum {
4141
WIFI_IF_MAX /**< Maximum number of interfaces */
4242
} wifi_interface_t;
4343

44-
typedef enum {
45-
WIFI_OFFCHAN_TX_CANCEL, /**< Cancel off-channel transmission */
46-
WIFI_OFFCHAN_TX_REQ, /**< Request off-channel transmission */
47-
} wifi_action_tx_t;
44+
#define WIFI_OFFCHAN_TX_REQ 1 /**< Request off-channel transmission */
45+
#define WIFI_OFFCHAN_TX_CANCEL 0 /**< Cancel off-channel transmission */
46+
47+
#define WIFI_ROC_REQ 1 /**< Request remain on channel */
48+
#define WIFI_ROC_CANCEL 0 /**< Cancel remain on channel */
4849

49-
typedef enum {
50-
WIFI_ROC_CANCEL, /**< Cancel remain on channel */
51-
WIFI_ROC_REQ, /**< Request remain on channel */
52-
} wifi_roc_t;
5350
/**
5451
* @brief Wi-Fi country policy
5552
*/
@@ -244,7 +241,6 @@ typedef struct {
244241
wifi_scan_channel_bitmap_t channel_bitmap; /**< Channel bitmap for setting specific channels to be scanned.
245242
Please note that the 'channel' parameter above needs to be set to 0 to allow scanning by bitmap.
246243
Also, note that only allowed channels configured by wifi_country_t can be scanned. */
247-
bool coex_background_scan; /**< Enable it to scan return home channel under coexist */
248244
} wifi_scan_config_t;
249245

250246
/**
@@ -567,7 +563,7 @@ typedef struct {
567563
uint32_t he_trig_mu_bmforming_partial_feedback_disabled: 1; /**< Whether to disable support the transmission of partial-bandwidth MU feedback in an HE TB sounding sequence. */
568564
uint32_t he_trig_cqi_feedback_disabled: 1; /**< Whether to disable support the transmission of CQI feedback in an HE TB sounding sequence. */
569565
uint32_t he_reserved: 22; /**< Reserved for future feature set */
570-
uint8_t sae_h2e_identifier[SAE_H2E_IDENTIFIER_LEN]; /**< Password identifier for H2E. Strings null-terminated (length < SAE_H2E_IDENTIFIER_LEN) or non-null terminated (length = SAE_H2E_IDENTIFIER_LEN) are accepted. Non-null terminated string with 0xFF for full length of SAE_H2E_IDENTIFIER_LEN is not considered a valid identifier */
566+
uint8_t sae_h2e_identifier[SAE_H2E_IDENTIFIER_LEN]; /**< Password identifier for H2E. this needs to be null terminated string */
571567
} wifi_sta_config_t;
572568

573569
/**
@@ -777,49 +773,12 @@ typedef int (* wifi_action_rx_cb_t)(uint8_t *hdr, uint8_t *payload,
777773
typedef struct {
778774
wifi_interface_t ifx; /**< Wi-Fi interface to send request to */
779775
uint8_t dest_mac[6]; /**< Destination MAC address */
780-
wifi_action_tx_t type; /**< ACTION TX operation type */
781-
uint8_t channel; /**< Channel on which to perform ACTION TX Operation */
782-
uint32_t wait_time_ms; /**< Duration to wait for on target channel */
783776
bool no_ack; /**< Indicates no ack required */
784-
wifi_action_rx_cb_t rx_cb; /**< Rx Callback to receive action frames */
785-
uint8_t op_id; /**< Unique Identifier for operation provided by wifi driver */
777+
wifi_action_rx_cb_t rx_cb; /**< Rx Callback to receive any response */
786778
uint32_t data_len; /**< Length of the appended Data */
787779
uint8_t data[0]; /**< Appended Data payload */
788780
} wifi_action_tx_req_t;
789781

790-
/** Status codes for WIFI_EVENT_ROC_DONE evt */
791-
typedef enum {
792-
WIFI_ROC_DONE = 0, /**< ROC operation was completed successfully */
793-
WIFI_ROC_FAIL, /**< ROC operation was cancelled */
794-
} wifi_roc_done_status_t;
795-
796-
/**
797-
* @brief The callback function executed when ROC operation has ended
798-
*
799-
* @param context rxcb registered for the corresponding ROC operation
800-
* @param op_id ID of the corresponding ROC operation
801-
* @param status status code of the ROC operation denoted
802-
*
803-
*/
804-
typedef void (* wifi_action_roc_done_cb_t)(uint32_t context, uint8_t op_id,
805-
wifi_roc_done_status_t status);
806-
807-
/**
808-
* @brief Remain on Channel request
809-
*
810-
*
811-
*/
812-
typedef struct {
813-
wifi_interface_t ifx; /**< WiFi interface to send request to */
814-
wifi_roc_t type; /**< ROC operation type */
815-
uint8_t channel; /**< Channel on which to perform ROC Operation */
816-
wifi_second_chan_t sec_channel; /**< Secondary channel */
817-
uint32_t wait_time_ms; /**< Duration to wait for on target channel */
818-
wifi_action_rx_cb_t rx_cb; /**< Rx Callback to receive any response */
819-
uint8_t op_id; /**< ID of this specific ROC operation provided by wifi driver */
820-
wifi_action_roc_done_cb_t done_cb; /**< Callback to function that will be called upon ROC done. If assigned, WIFI_EVENT_ROC_DONE event will not be posted */
821-
} wifi_roc_req_t;
822-
823782
/**
824783
* @brief FTM Initiator configuration
825784
*
@@ -1277,32 +1236,21 @@ typedef struct {
12771236
#define WIFI_STATIS_PS (1<<4) /**< Power save status */
12781237
#define WIFI_STATIS_ALL (-1) /**< All status */
12791238

1280-
/** Status codes for WIFI_EVENT_ACTION_TX_STATUS evt */
1281-
/** There will be back to back events in success case TX_DONE and TX_DURATION_COMPLETED */
1282-
typedef enum {
1283-
WIFI_ACTION_TX_DONE = 0, /**< ACTION_TX operation was completed successfully */
1284-
WIFI_ACTION_TX_FAILED, /**< ACTION_TX operation failed during tx */
1285-
WIFI_ACTION_TX_DURATION_COMPLETED, /**< ACTION_TX operation completed it's wait duration */
1286-
WIFI_ACTION_TX_OP_CANCELLED, /**< ACTION_TX operation was cancelled by application or higher priority operation */
1287-
} wifi_action_tx_status_type_t;
1288-
1289-
/** Argument structure for WIFI_EVENT_ACTION_TX_STATUS event */
1239+
/**
1240+
* @brief Argument structure for WIFI_EVENT_ACTION_TX_STATUS event
1241+
*/
12901242
typedef struct {
1291-
wifi_interface_t ifx; /**< WiFi interface to send request to */
1292-
uint32_t context; /**< Context to identify the request */
1293-
wifi_action_tx_status_type_t status; /**< Status of the operation */
1294-
uint8_t op_id; /**< ID of the corresponding operation that was provided during action tx request */
1295-
uint8_t channel; /**< Channel provided in tx request */
1243+
wifi_interface_t ifx; /**< Wi-Fi interface to send request to */
1244+
uint32_t context; /**< Context to identify the request */
1245+
uint8_t da[6]; /**< Destination MAC address */
1246+
uint8_t status; /**< Status of the operation */
12961247
} wifi_event_action_tx_status_t;
12971248

12981249
/**
12991250
* @brief Argument structure for WIFI_EVENT_ROC_DONE event
13001251
*/
13011252
typedef struct {
1302-
uint32_t context; /**< Context to identify the initiator of the request */
1303-
wifi_roc_done_status_t status; /**< ROC status */
1304-
uint8_t op_id; /**< ID of the corresponding ROC operation */
1305-
uint8_t channel; /**< Channel provided in tx request */
1253+
uint32_t context; /**< Context to identify the request */
13061254
} wifi_event_roc_done_t;
13071255

13081256
/**

components/esp_wifi_remote/test/smoke_test/components/esp_hosted/idf_v5.4/esp_hosted_mock.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -431,13 +431,3 @@ esp_err_t esp_wifi_remote_get_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t
431431
{
432432
return ESP_OK;
433433
}
434-
435-
esp_err_t esp_wifi_remote_action_tx_req(wifi_action_tx_req_t *req)
436-
{
437-
return ESP_OK;
438-
}
439-
440-
esp_err_t esp_wifi_remote_remain_on_channel(wifi_roc_req_t *req)
441-
{
442-
return ESP_OK;
443-
}

components/esp_wifi_remote/test/smoke_test/components/esp_hosted/idf_v5.4/include/esp_hosted_mock.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,3 @@ esp_err_t esp_wifi_remote_set_protocols(wifi_interface_t ifx, wifi_protocols_t *
9090
esp_err_t esp_wifi_remote_get_protocols(wifi_interface_t ifx, wifi_protocols_t *protocols);
9191
esp_err_t esp_wifi_remote_set_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t *bw);
9292
esp_err_t esp_wifi_remote_get_bandwidths(wifi_interface_t ifx, wifi_bandwidths_t *bw);
93-
esp_err_t esp_wifi_remote_action_tx_req(wifi_action_tx_req_t *req);
94-
esp_err_t esp_wifi_remote_remain_on_channel(wifi_roc_req_t *req);

components/esp_wifi_remote/test/smoke_test/main/idf_v5.4/all_wifi_calls.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,4 @@ void run_all_wifi_apis(void)
453453
esp_wifi_get_bandwidths(ifx, bw);
454454
}
455455

456-
{
457-
wifi_action_tx_req_t *req = NULL;
458-
esp_wifi_action_tx_req(req);
459-
}
460-
461-
{
462-
wifi_roc_req_t *req = NULL;
463-
esp_wifi_remain_on_channel(req);
464-
}
465-
466456
}

0 commit comments

Comments
 (0)