kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/netif_interface_reg_sequence_issue' into 'master'
esp_wifi: netif: set interface before registering Wi-Fi driver RX callback Closes WIFI-4515 and WIFI-4472 See merge request espressif/esp-idf!18895pull/9408/head
commit
03c1ada871
|
@ -133,10 +133,13 @@ esp_err_t esp_wifi_register_if_rxcb(wifi_netif_driver_t ifx, esp_netif_receive_t
|
|||
return ESP_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
/* Interface must be set before registering Wi-Fi RX callback */
|
||||
set_wifi_netif(wifi_interface, esp_netif_get_netif_impl(arg));
|
||||
|
||||
if ((ret = esp_wifi_internal_reg_rxcb(wifi_interface, rxcb)) != ESP_OK) {
|
||||
ESP_LOGE(TAG, "esp_wifi_internal_reg_rxcb for if=%d failed with %d", wifi_interface, ret);
|
||||
return ESP_ERR_INVALID_STATE;
|
||||
}
|
||||
set_wifi_netif(wifi_interface, esp_netif_get_netif_impl(arg));
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue