mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'fix/wifi_remote_update' into 'master'
fix(wifi_remote): Forward porting some fixes See merge request espressif/esp-idf!48485
This commit is contained in:
@@ -6,7 +6,7 @@ menu "Wi-Fi Remote"
|
||||
default y
|
||||
|
||||
config ESP_WIFI_REMOTE_ENABLED # ignore: multiple-definition
|
||||
bool
|
||||
bool "Enable Wi-Fi Remote component"
|
||||
default y if !ESP_HOST_WIFI_ENABLED
|
||||
default n if ESP_HOST_WIFI_ENABLED
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ WEAK esp_err_t esp_wifi_remote_channel_rx(void *h, void *buffer, void *buff_to_f
|
||||
if (h == s_channel[CHANNEL_AP] && s_rx_fn[CHANNEL_AP]) {
|
||||
return s_rx_fn[CHANNEL_AP](buffer, len, buff_to_free);
|
||||
}
|
||||
free(buff_to_free);
|
||||
return ESP_FAIL;
|
||||
}
|
||||
|
||||
@@ -90,7 +91,7 @@ IMPLEMENT_WIFI_TRANSMIT(transmit_ap, WIFI_IF_AP)
|
||||
|
||||
static void wifi_free(void *h, void* buffer)
|
||||
{
|
||||
// remote wifi, no need to free the buffer
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
static esp_err_t receive_sta(void *buffer, uint16_t len, void *eb)
|
||||
|
||||
Reference in New Issue
Block a user