Skip to content

ESP32C5 fails esp_wifi_config_80211_tx in SOFTAP mode (IDFGH-15367) #16024

Closed
@HuaShenGong

Description

@HuaShenGong

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.5-dev-3822-g27d68f57e6

Espressif SoC revision.

Chip is ESP32-C5 (revision v1.0)

Operating System used.

Linux

How did you build your project?

Command line with Make

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32-C5-DevKitC-1

Power Supply used.

USB

What is the expected behavior?

esp_wifi_config_80211_tx Return ESP_OK

What is the actual behavior?

ESP32C5 fails esp_wifi_config_80211_tx in SOFTAP mode:
W (8486) wifi:invalid phymode, need to change phy mode

Steps to reproduce.

esp_err_t ret = ESP_OK;
wifi_interface_t ifx = ESP_IF_WIFI_AP;
wifi_tx_rate_config_t rate_config = {WIFI_PHY_MODE_VHT20, WIFI_PHY_RATE_MCS4_SGI, 0, 0};

void wifi_init_softap(void)
{
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
esp_netif_create_default_wifi_ap();

wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&cfg));

....



ret = esp_wifi_config_80211_tx(ifx, &rate_config);
if (ret != ESP_OK) {
    ESP_LOGE(TAG, "11 esp_wifi_config_80211_tx is fail!!!!!!!!!!!!!!!!!!!!! ret = 0x%04x.[%s]", ret, __func__);
} else {
    ESP_LOGE(TAG, "11 esp_wifi_config_80211_tx is ok!!!!!!!!!!!!!!!!!!! ret = 0x%04x.[%s]", ret, __func__);
}
.....

}

Debug Logs.


Diagnostic report archive.

No response

More Information.

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions