-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Description
Env
ESP32C3
ESP-Hosted Release V0.4
Issue
Channel 1~11 work well. BUT when wifi AP channel work in 12 or 13, the esp32c3 can't connect to AP, below is log:
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xe (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x16c4
load:0x403ce000,len:0x930
load:0x403d0000,len:0x2d28
entry 0x403ce000
I (30) boot: ESP-IDF v4.4.1-581-gee2029c38a 2nd stage bootloader
I (30) boot: compile time 11:50:59
I (30) boot: chip revision: 3
I (33) boot.esp32c3: SPI Speed : 80MHz
I (38) boot.esp32c3: SPI Mode : DIO
I (43) boot.esp32c3: SPI Flash Size : 4MB
I (47) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (56) boot: ## Label Usage Type ST Offset Length
I (64) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (71) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (79) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (86) boot: 3 factory factory app 00 00 00010000 00100000
I (94) boot: 4 ota_0 OTA app 00 10 00110000 00100000
I (101) boot: 5 ota_1 OTA app 00 11 00210000 00100000
I (109) boot: End of partition table
I (113) boot: Defaulting to factory image
I (118) esp_image: segment 0: paddr=00010020 vaddr=3c0a0020 size=1c618h (116248) map
I (144) esp_image: segment 1: paddr=0002c640 vaddr=3fc91200 size=032c8h ( 13000) load
I (147) esp_image: segment 2: paddr=0002f910 vaddr=40380000 size=00708h ( 1800) load
I (150) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=935a8h (603560) map
I (253) esp_image: segment 4: paddr=000c35d0 vaddr=40380708 size=109e8h ( 68072) load
I (266) esp_image: segment 5: paddr=000d3fc0 vaddr=50000010 size=00010h ( 16) load
I (271) boot: Loaded app from partition at offset 0x10000
I (271) boot: Disabling RNG early entropy source...
I (286) cpu_start: Pro cpu up.
I (294) cpu_start: Pro cpu start user code
I (294) cpu_start: cpu freq: 160000000
I (294) cpu_start: Application information:
I (297) cpu_start: Project name: network_adapter
I (303) cpu_start: App version: release/v0.4-5-gcd31d49-dirty
I (309) cpu_start: Compile time: Aug 14 2022 11:48:55
I (315) cpu_start: ELF file SHA256: 912b6c5a9e3c71f2...
I (321) cpu_start: ESP-IDF: v4.4.1-581-gee2029c38a
I (328) heap_init: Initializing. RAM available for dynamic allocation:
I (335) heap_init: At 3FC996B0 len 00026950 (154 KiB): DRAM
I (341) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (348) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (355) spi_flash: detected chip: mxic
I (359) spi_flash: flash io: dio
I (363) sleep: Configure to isolate all GPIO pins in sleep state
I (369) sleep: Enable automatic switching of GPIO sleep configuration
I (377) coexist: coexist rom version 9387209
I (382) cpu_start: Starting scheduler.
I (386) NETWORK_ADAPTER: *********************************************************************
I (386) NETWORK_ADAPTER: ESP-Hosted Firmware version :: 0.4
I (396) NETWORK_ADAPTER: Transport used :: SPI
I (406) NETWORK_ADAPTER: *********************************************************************
I (416) NETWORK_ADAPTER: Supported features are:
I (426) NETWORK_ADAPTER: - WLAN over SPI
I (426) ESP_BT: - BT/BLE
I (436) ESP_BT: - HCI Over SPI
I (436) ESP_BT: - BLE only
I (446) BTDM_INIT: BT controller compile version [05195c9]
I (446) phy_init: phy_version 912,d001756,Jun 2 2022,16:28:07
I (476) system_api: Base MAC address is not set
I (476) system_api: read default base MAC address from EFUSE
I (486) BTDM_INIT: Bluetooth MAC: 60:55:f9:77:5f:b2
I (486) NETWORK_ADAPTER: ESP Bluetooth MAC addr: 60-55-f9-77-5f-b2
I (496) SPI_DRIVER: Using SPI interface
I (496) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (506) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1516) pp: pp rom version: 9387209
I (1516) net80211: net80211 rom version: 9387209
I (1526) NETWORK_ADAPTER: Initial set up done
I (9626) slave_commands: Get station mac address
I (9626) slave_commands: mac [60:55:f9:77:5f:b0]
I (9646) slave_commands: station mode set
I (12626) slave_commands: Retry to connect to the AP
I (14306) slave_commands: Retry to connect to the AP
I (15356) slave_commands: Retry to connect to the AP
I (17046) slave_commands: Retry to connect to the AP
I (18116) slave_commands: Retry to connect to the AP
I (19806) slave_commands: Password incorrect for SSID
From the spec of esp32c3, it can be seen that it supports channel 12~13.

From commands.c, you can see that the softap maximum channel is limited to 11
#define MAX_CHNL_NO 11
But I didn't find any restrictions on station, maybe it's in IDF?
Problem
Why limit channel to 11? how to remove the limit? Thank!
lin72h
Metadata
Metadata
Assignees
Labels
No labels