mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 06:46:31 +02:00
IDF release/v4.0 a3f3c7bdc
This commit is contained in:
@ -377,6 +377,43 @@ esp_err_t esp_wifi_internal_get_log(wifi_log_level_t *log_level, uint32_t *log_m
|
||||
*/
|
||||
esp_err_t esp_wifi_internal_ioctl(int cmd, wifi_ioctl_config_t *cfg);
|
||||
|
||||
/**
|
||||
* @brief Get the user-configured channel info
|
||||
*
|
||||
* @param ifx : WiFi interface
|
||||
* @param primary : store the configured primary channel
|
||||
* @param second : store the configured second channel
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
*/
|
||||
esp_err_t esp_wifi_internal_get_config_channel(wifi_interface_t ifx, uint8_t *primary, uint8_t *second);
|
||||
|
||||
/**
|
||||
* @brief Get the negotiated channel info after WiFi connection established
|
||||
*
|
||||
* @param ifx : WiFi interface
|
||||
* @param aid : the connection number when a STA connects to the softAP
|
||||
* @param primary : store the negotiated primary channel
|
||||
* @param second : store the negotiated second channel
|
||||
* @attention the aid param is only works when the ESP32 in softAP/softAP+STA mode
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
*/
|
||||
esp_err_t esp_wifi_internal_get_negotiated_channel(wifi_interface_t ifx, uint8_t aid, uint8_t *primary, uint8_t *second);
|
||||
|
||||
/**
|
||||
* @brief Get the negotiated bandwidth info after WiFi connection established
|
||||
*
|
||||
* @param ifx : WiFi interface
|
||||
* @param bw : store the negotiated bandwidth
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
*/
|
||||
esp_err_t esp_wifi_internal_get_negotiated_bandwidth(wifi_interface_t ifx, uint8_t aid, uint8_t *bw);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -106,6 +106,7 @@ typedef struct {
|
||||
int32_t (* _get_time)(void *t);
|
||||
unsigned long (* _random)(void);
|
||||
void (* _log_write)(uint32_t level, const char* tag, const char* format, ...);
|
||||
void (* _log_writev)(uint32_t level, const char* tag, const char* format, va_list args);
|
||||
uint32_t (* _log_timestamp)(void);
|
||||
void * (* _malloc_internal)(size_t size);
|
||||
void * (* _realloc_internal)(void *ptr, size_t size);
|
||||
|
Reference in New Issue
Block a user