mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-06 17:44:05 +08:00
Merge branch 'feature/modify_wifi_api_to_keep_consistent_with_esp32' into 'master'
feat(lib): modify wifi api to keep consistent with esp32 See merge request sdk/ESP8266_RTOS_SDK!839
This commit is contained in:
components/esp8266
@ -651,6 +651,31 @@ esp_err_t esp_wifi_get_promiscuous_filter(wifi_promiscuous_filter_t *filter);
|
||||
*/
|
||||
esp_err_t esp_wifi_set_config(wifi_interface_t interface, wifi_config_t *conf);
|
||||
|
||||
/**
|
||||
* @brief Enable subtype filter of the control packet in promiscuous mode.
|
||||
*
|
||||
* @note The default filter is to filter none control packet.
|
||||
*
|
||||
* @param filter the subtype of the control packet filtered in promiscuous mode.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
|
||||
*/
|
||||
esp_err_t esp_wifi_set_promiscuous_ctrl_filter(const wifi_promiscuous_filter_t *filter);
|
||||
|
||||
/**
|
||||
* @brief Get the subtype filter of the control packet in promiscuous mode.
|
||||
*
|
||||
* @param[out] filter store the current status of subtype filter of the control packet in promiscuous mode
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
|
||||
* - ESP_ERR_WIFI_ARG: invalid argument
|
||||
*/
|
||||
esp_err_t esp_wifi_get_promiscuous_ctrl_filter(wifi_promiscuous_filter_t *filter);
|
||||
|
||||
/**
|
||||
* @brief Get configuration of specified interface
|
||||
*
|
||||
@ -871,16 +896,16 @@ esp_err_t esp_wifi_get_event_mask(uint32_t *mask);
|
||||
* the next packet is allowed to send. Otherwise, wifi_send_pkt_freedom
|
||||
* will return fail.
|
||||
*
|
||||
* @param uint8 *buf : pointer of packet
|
||||
* @param uint16 len : packet length
|
||||
* @param bool sys_seq : follow the system's 802.11 packets sequence number or not,
|
||||
* @param const void *buffer: pointer of packet
|
||||
* @param int len: packet length
|
||||
* @param bool en_sys_seq: follow the system's 802.11 packets sequence number or not,
|
||||
* if it is true, the sequence number will be increased 1 every
|
||||
* time a packet sent.
|
||||
*
|
||||
* @return ESP_OK, succeed;
|
||||
* @return ESP_FAIL, fail.
|
||||
*/
|
||||
esp_err_t esp_wifi_send_pkt_freedom(uint8_t *buf, int32_t len, bool sys_seq);
|
||||
esp_err_t esp_wifi_80211_tx(wifi_interface_t ifx, const void *buffer, int len, bool en_sys_seq);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
gwen:
|
||||
core: 3613883
|
||||
net80211: df2730a
|
||||
net80211: a2ced47
|
||||
pp: df2730a
|
||||
wpa: 4e2372f
|
||||
espnow: eeb16c6
|
||||
|
BIN
components/esp8266/lib/libnet80211.a
Normal file → Executable file
BIN
components/esp8266/lib/libnet80211.a
Normal file → Executable file
Binary file not shown.
Reference in New Issue
Block a user