Skip to content

softAP mode issue #586

@helpfile

Description

@helpfile

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

The host can work in AP mode

Actual behavior (suspected bug)

I (59748) wifi:mode : softAP (54:32:04:0b:e0:90)
I (59752) wifi:Total power save buffer number: 20
I (59756) wifi:Init max length of beacon: 752/752
E (59761) wifi:ieee80211_output.c 5202

Error logs or terminal output

linux dmesg:
[   63.560665] esp32c6: wait_and_decode_cmd_resp: Command[0x16] timed out
[   63.570047] esp32c6: cmd_set_mode: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[   63.579136] esp32c6: esp_cfg80211_change_iface: wdev iftype=2, ret=-22
[   63.586524] esp32c6: update_mac_filter: 1: 01:00:5e:00:00:01
[   63.586549] esp32c6: update_mac_filter: Setting Multicast list
[   63.586860] esp32c6: esp_cfg80211_change_iface: current iface type=0 new iface type=1
[   63.597832] cmd_set_mode(1966)
[   63.601167] esp32c6: esp_cmd_work: Processing Command [0xE]
[   63.640391] esp32c6: esp_cmd_work: Busy in another cmd execution
[   68.580365] esp32c6: wait_and_decode_cmd_resp: Command[0xE] timed out
[   68.587150] esp32c6: cmd_set_mcast_mac_list: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[   68.600366] esp32c6: wait_and_decode_cmd_resp: Command[0x16] timed out
[   68.607159] esp32c6: reset_cmd_node: recycling command still in cmd queue
[   68.607176] esp32c6: cmd_set_mode: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[   68.616266] esp32c6: esp_cfg80211_change_iface: wdev iftype=2, ret=-22
[   68.623325] esp32c6: update_mac_filter: Setting Multicast list
[   68.660401] esp32c6: esp_cmd_work: Processing Command [0xE]
[   73.620380] esp32c6: wait_and_decode_cmd_resp: Command[0xE] timed out
[   73.627203] esp32c6: cmd_set_mcast_mac_list: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[   73.639808] esp32c6: update_mac_filter: 1: 01:00:5e:00:00:01
[   73.639831] esp32c6: update_mac_filter: Setting Multicast list
[   73.670388] esp32c6: esp_cmd_work: Processing Command [0xE]
[   78.630488] esp32c6: wait_and_decode_cmd_resp: Command[0xE] timed out
[   78.640013] esp32c6: cmd_set_mcast_mac_list: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22

======================================================
ESP32C6 log:

ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x4086c410,len:0xd44
load:0x4086e610,len:0x2de4
load:0x40875728,len:0x17dc
entry 0x4086c410
I (23) boot: ESP-IDF HEAD-HASH-NOTFOUND 2nd stage bootloader
I (24) boot: compile time Jan 16 2025 16:18:45
I (24) boot: chip revision: v0.0
I (27) boot.esp32c6: SPI Speed      : 80MHz
I (32) boot.esp32c6: SPI Mode       : DIO
I (37) boot.esp32c6: SPI Flash Size : 4MB
I (42) boot: Enabling RNG early entropy source...
I (47) boot: Partition Table:
I (51) boot: ## Label            Usage          Type ST Offset   Length
I (58) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (65) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (73) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (80) boot:  3 factory          factory app      00 00 00010000 00100000
I (88) boot:  4 ota_0            OTA app          00 10 00110000 00100000
I (95) boot:  5 ota_1            OTA app          00 11 00210000 00100000
I (103) boot: End of partition table
I (107) boot: Defaulting to factory image
I (112) esp_image: segment 0: paddr=00010020 vaddr=420b0020 size=22bb8h (142264) map
I (150) esp_image: segment 1: paddr=00032be0 vaddr=40800000 size=0d438h ( 54328) load
I (163) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=a6af8h (682744) map
I (304) esp_image: segment 3: paddr=000e6b20 vaddr=4080d438 size=0c8b4h ( 51380) load
I (317) esp_image: segment 4: paddr=000f33dc vaddr=40819cf0 size=0353ch ( 13628) load
I (327) boot: Loaded app from partition at offset 0x10000
I (327) boot: Disabling RNG early entropy source...
I (338) cpu_start: Unicore app
I (339) cpu_start: Pro cpu up.
W (348) clk: esp_perip_clk_init() has not been implemented yet
I (354) cpu_start: Pro cpu start user code
I (354) cpu_start: cpu freq: 160000000 Hz
I (355) cpu_start: Application information:
I (357) cpu_start: Project name:     network_adapter
I (363) cpu_start: App version:      NG-1.0.3.0.3
I (368) cpu_start: Compile time:     Jan 16 2025 16:18:27
I (374) cpu_start: ELF file SHA256:  2ceaff6b83451e37...
I (380) cpu_start: ESP-IDF:          HEAD-HASH-NOTFOUND
I (386) cpu_start: Min chip rev:     v0.0
I (391) cpu_start: Max chip rev:     v0.99 
I (396) cpu_start: Chip rev:         v0.0
I (401) heap_init: Initializing. RAM available for dynamic allocation:
I (408) heap_init: At 4082BF40 len 000506D0 (321 KiB): D/IRAM
I (414) heap_init: At 4087C610 len 00002F54 (11 KiB): STACK/DIRAM
I (421) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
I (428) spi_flash: detected chip: generic
I (432) spi_flash: flash io: dio
I (436) sleep: Configure to isolate all GPIO pins in sleep state
I (443) sleep: Enable automatic switching of GPIO sleep configuration
I (450) coexist: coex firmware version: 77cd7f8
I (455) coexist: coexist rom version 5b8dcfa
I (460) app_start: Starting scheduler on CPU0
I (465) main_task: Started on CPU0
I (469) main_task: Calling app_main()
I (473) stats: *********************************************************************
I (481) stats:                 ESP-Hosted Firmware version :: NG-1.0.3.0.3                        
I (491) stats:                 Transport used :: SDIO only                     
I (499) stats: *********************************************************************
I (507) FW_MAIN: Supported features are:
I (512) FW_MAIN: - WLAN over SDIO
I (516) FW_BT: - BT/BLE
I (519) FW_BT:    - HCI Over SDIO
I (523) FW_BT:    - BLE only
I (527) FW_MAIN: Capabilities: 0xd
pp rom version: 5b8dcfa
net80211 rom version: 5b8dcfa
I (537) wifi:wifi driver task: 4087df48, prio:23, stack:6656, core=0
I (542) wifi:wifi firmware version: 0abed4a
I (546) wifi:wifi certification version: v7.0
I (550) wifi:config NVS flash: disabled
I (553) wifi:config nano formating: disabled
I (557) wifi:mac_version:HAL_MAC_ESP32AX_761,ut_version:N
I (563) wifi:Init data frame dynamic rx buffer num: 60
I (567) wifi:Init static rx mgmt buffer num: 5
I (571) wifi:Init management short buffer num: 32
I (576) wifi:Init dynamic tx buffer num: 40
I (580) wifi:Init static tx FG buffer num: 2
I (584) wifi:Init static rx buffer size: 1700
I (588) wifi:Init static rx buffer num: 40
I (592) wifi:Init dynamic rx buffer num: 60
I (596) wifi_init: rx ba win: 32
I (599) wifi_init: tcpip mbox: 32
I (603) wifi_init: udp mbox: 6
I (607) wifi_init: tcp mbox: 6
I (611) wifi_init: tcp tx win: 5760
I (615) wifi_init: tcp rx win: 5760
I (619) wifi_init: tcp mss: 1440
I (623) wifi_init: WiFi IRAM OP enabled
I (628) wifi_init: WiFi RX IRAM OP enabled
I (633) BLE_INIT: Using main XTAL as clock source
I (643) BLE_INIT: ble controller commit:[217f1bf]
I (643) phy_init: phy_version 250,e14681b,Jan 24 2024,17:43:11
I (689) phy: libbtbb version: 939f79c, Jan 24 2024, 17:43:26
I (690) FW_MAIN: ESP Bluetooth MAC addr: 54-32- 4- b-e0-92

I (691) FW_SDIO_SLAVE: Using SDIO interface
I (696) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (10813) FW_MAIN: Start Data Path
I (10813) FW_SDIO_SLAVE: last reset cause: 1x
I (10814) FW_MAIN: Initial set up done
I (10816) main_task: Returned from app_main()
I (10917) FW_MAIN: INIT Interface command
W (10918) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (10918) wifi:(agc)0x600a7128:0xd21da800, min.avgNF:0xce->0xd2(dB), RCalCount:0x1da, min.RRssi:0x800(-128.00)
W (10924) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (10927) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (10931) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (10934) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (10938) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (10941) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (10945) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (10948) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (10952) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (10955) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (10959) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (10962) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (10966) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).

I (10973) wifi:mode : sta (54:32:04:0b:e0:90)
I (10977) wifi:enable tsf
I (10979) FW_CMD: station started and disabled softap mode
I (11037) FW_MAIN: Get MAC command
I (34996) FW_MAIN: Set IP Address
I (57916) FW_MAIN: Scan request
I (59676) FW_MAIN: Set MODE command
W (59677) wifi:(itwt)itwt_stop_process!
I (59678) wifi:flush txq
I (59678) wifi:stop sw txq
I (59678) wifi:lmac stop hw txq
I (59681) FW_CMD: Setting mode=2 

W (59685) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (59689) wifi:(agc)0x600a7128:0xd219da28, min.avgNF:0xce->0xd2(dB), RCalCount:0x19d, min.RRssi:0xa28(-93.50)
W (59699) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (59702) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (59705) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (59709) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (59712) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (59716) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (59719) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (59723) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (59726) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (59730) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (59733) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (59737) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (59741) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).

I (59748) wifi:mode : softAP (54:32:04:0b:e0:90)
I (59752) wifi:Total power save buffer number: 20
I (59756) wifi:Init max length of beacon: 752/752
E (59761) wifi:ieee80211_output.c 5202

E (64675) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (64675) task_wdt:  - IDLE (CPU 0)
E (64675) task_wdt: Tasks currently running:
E (64675) task_wdt: CPU 0: wifi
E (64675) task_wdt: Print CPU 0 (current core) registers
Core  register dump:
MEPC    : 0x4206ab40  RA      : 0x4206ab40  SP      : 0x40831bd0  GP      : 0x4081a4f0  
TP      : 0x4080f994  T0      : 0x40028192  T1      : 0x408317bc  T2      : 0x002c002c  
S0/FP   : 0x0000000c  S1      : 0x4084fe54  A0      : 0x00000001  A1      : 0x40831798  
A2      : 0x00000000  A3      : 0x00000017  A4      : 0x4082c000  A5      : 0x00000000  
A6      : 0x00000001  A7      : 0x0000000a  S2      : 0x4084f968  S3      : 0x40831c1c  
S4      : 0x4084f968  S5      : 0x00000000  S6      : 0x40880000  S7      : 0x40880000  
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x00000010  T5      : 0x0000000f  T6      : 0xffffff99  
MSTATUS : 0x00000000  MTVEC   : 0x4084ff04  MCAUSE  : 0x4957454e  MTVAL   : 0x00005644  
MHARTID : 0x4082c000  
E (69675) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (69675) task_wdt:  - IDLE (CPU 0)
E (69675) task_wdt: Tasks currently running:
E (69675) task_wdt: CPU 0: wifi
E (69675) task_wdt: Print CPU 0 (current core) registers
Core  register dump:
MEPC    : 0x4206ab40  RA      : 0x4206ab40  SP      : 0x40831bd0  GP      : 0x4081a4f0  
TP      : 0x4080f994  T0      : 0x40028192  T1      : 0x408317bc  T2      : 0x002c002c  
S0/FP   : 0x0000000c  S1      : 0x4084fe54  A0      : 0x00000001  A1      : 0x40831798  
A2      : 0x00000000  A3      : 0x00000017  A4      : 0x4082c000  A5      : 0x00000000  
A6      : 0x00000001  A7      : 0x0000000a  S2      : 0x4084f968  S3      : 0x40831c1c  
S4      : 0x4084f968  S5      : 0x00000000  S6      : 0x40880000  S7      : 0x40880000  
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x00000010  T5      : 0x0000000f  T6      : 0xffffff99  
MSTATUS : 0x00000000  MTVEC   : 0x4084ff04  MCAUSE  : 0x4957454e  MTVAL   : 0x00005644  
MHARTID : 0x4082c000  
E (74675) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (74675) task_wdt:  - IDLE (CPU 0)
E (74675) task_wdt: Tasks currently running:
E (74675) task_wdt: CPU 0: wifi
E (74675) task_wdt: Print CPU 0 (current core) registers
Core  register dump:
MEPC    : 0x4206ab40  RA      : 0x4206ab40  SP      : 0x40831bd0  GP      : 0x4081a4f0  
TP      : 0x4080f994  T0      : 0x40028192  T1      : 0x408317bc  T2      : 0x002c002c  
S0/FP   : 0x0000000c  S1      : 0x4084fe54  A0      : 0x00000001  A1      : 0x40831798  
A2      : 0x00000000  A3      : 0x00000017  A4      : 0x4082c000  A5      : 0x00000000  
A6      : 0x00000001  A7      : 0x0000000a  S2      : 0x4084f968  S3      : 0x40831c1c  
S4      : 0x4084f968  S5      : 0x00000000  S6      : 0x40880000  S7      : 0x40880000  
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x00000010  T5      : 0x0000000f  T6      : 0xffffff99  
MSTATUS : 0x00000000  MTVEC   : 0x4084ff04  MCAUSE  : 0x4957454e  MTVAL   : 0x00005644  
MHARTID : 0x4082c000  
E (79675) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (79675) task_wdt:  - IDLE (CPU 0)
E (79675) task_wdt: Tasks currently running:
E (79675) task_wdt: CPU 0: wifi
E (79675) task_wdt: Print CPU 0 (current core) registers
Core  register dump:
MEPC    : 0x4206ab40  RA      : 0x4206ab40  SP      : 0x40831bd0  GP      : 0x4081a4f0  
TP      : 0x4080f994  T0      : 0x40028192  T1      : 0x408317bc  T2      : 0x002c002c  
S0/FP   : 0x0000000c  S1      : 0x4084fe54  A0      : 0x00000001  A1      : 0x40831798  
A2      : 0x00000000  A3      : 0x00000017  A4      : 0x4082c000  A5      : 0x00000000  
A6      : 0x00000001  A7      : 0x0000000a  S2      : 0x4084f968  S3      : 0x40831c1c  
S4      : 0x4084f968  S5      : 0x00000000  S6      : 0x40880000  S7      : 0x40880000  
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x00000010  T5      : 0x0000000f  T6      : 0xffffff99  
MSTATUS : 0x00000000  MTVEC   : 0x4084ff04  MCAUSE  : 0x4957454e  MTVAL   : 0x00005644  
MHARTID : 0x4082c000  
E (84675) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (84675) task_wdt:  - IDLE (CPU 0)
E (84675) task_wdt: Tasks currently running:
E (84675) task_wdt: CPU 0: wifi
E (84675) task_wdt: Print CPU 0 (current core) registers
Core  register dump:
MEPC    : 0x4206ab40  RA      : 0x4206ab40  SP      : 0x40831bd0  GP      : 0x4081a4f0  
TP      : 0x4080f994  T0      : 0x40028192  T1      : 0x408317bc  T2      : 0x002c002c  
S0/FP   : 0x0000000c  S1      : 0x4084fe54  A0      : 0x00000001  A1      : 0x40831798  
A2      : 0x00000000  A3      : 0x00000017  A4      : 0x4082c000  A5      : 0x00000000  
A6      : 0x00000001  A7      : 0x0000000a  S2      : 0x4084f968  S3      : 0x40831c1c  
S4      : 0x4084f968  S5      : 0x00000000  S6      : 0x40880000  S7      : 0x40880000  
S8      : 0x40880000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
T3      : 0x00000000  T4      : 0x00000010  T5      : 0x0000000f  T6      : 0xffffff99  
MSTATUS : 0x00000000  MTVEC   : 0x4084ff04  MCAUSE  : 0x4957454e  MTVAL   : 0x00005644  
MHARTID : 0x4082c000

Steps to reproduce the behavior

Command on the host side:
wpa_supplicant -B -Dnl80211 -iwlan0 -c /config/hostap.conf

linux dmesg:
[ 63.560665] esp32c6: wait_and_decode_cmd_resp: Command[0x16] timed out
[ 63.570047] esp32c6: cmd_set_mode: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[ 63.579136] esp32c6: esp_cfg80211_change_iface: wdev iftype=2, ret=-22
[ 63.586524] esp32c6: update_mac_filter: 1: 01:00:5e:00:00:01
[ 63.586549] esp32c6: update_mac_filter: Setting Multicast list
[ 63.586860] esp32c6: esp_cfg80211_change_iface: current iface type=0 new iface type=1
[ 63.597832] cmd_set_mode(1966)
[ 63.601167] esp32c6: esp_cmd_work: Processing Command [0xE]
[ 63.640391] esp32c6: esp_cmd_work: Busy in another cmd execution
[ 68.580365] esp32c6: wait_and_decode_cmd_resp: Command[0xE] timed out
[ 68.587150] esp32c6: cmd_set_mcast_mac_list: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[ 68.600366] esp32c6: wait_and_decode_cmd_resp: Command[0x16] timed out
[ 68.607159] esp32c6: reset_cmd_node: recycling command still in cmd queue
[ 68.607176] esp32c6: cmd_set_mode: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[ 68.616266] esp32c6: esp_cfg80211_change_iface: wdev iftype=2, ret=-22
[ 68.623325] esp32c6: update_mac_filter: Setting Multicast list
[ 68.660401] esp32c6: esp_cmd_work: Processing Command [0xE]
[ 73.620380] esp32c6: wait_and_decode_cmd_resp: Command[0xE] timed out
[ 73.627203] esp32c6: cmd_set_mcast_mac_list: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22
[ 73.639808] esp32c6: update_mac_filter: 1: 01:00:5e:00:00:01
[ 73.639831] esp32c6: update_mac_filter: Setting Multicast list
[ 73.670388] esp32c6: esp_cmd_work: Processing Command [0xE]
[ 78.630488] esp32c6: wait_and_decode_cmd_resp: Command[0xE] timed out
[ 78.640013] esp32c6: cmd_set_mcast_mac_list: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -22

Project release version

NG-1.0.3

System architecture

other (details in Additional context)

Operating system

Linux

Operating system version

linux 3.10

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions