Skip to content

esp32: wifi: ap_sta: AP mode can transmit data if STA isn't connected #89780

@gcopoix

Description

@gcopoix

Describe the bug

To Reproduce

simply compile samples/net/wifi/apsta_mode on a ESP32 device, and make sure STA SSID/PW credentials don't match your local AP.
Then try to connect (e.g. by phone or laptop) to parallel opened AP named ESP32-AP.
Connction not possible.

Further investigation shows dhcpv4_send() (via zsock_sendto()) can't sent data to esp32 wifi driver (returned -EIO from esp32_wifi_send()).

Expected behavior

The connection to AP should be popssible regardless if STA is connected or not.

Impact

WiFi TX does not work if

  • CONFIG_ESP32_WIFI_AP_STA_MODE=y
  • STA isn't connected

This bug has been introduced by 183b74c

Fix: #89781

Logs and console output

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK in Docker (zephyrprojectrtos/zephyr-build:v0.27.4)

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: ESP32Espressif ESP32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions