How to change channel for WiFi AP into ESP32


snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: How to change channel for WiFi AP into ESP32

Postby snahmad75 » Thu May 30, 2019 10:56 am

Thanks I will try set channel function some time later.

I assume it only works in promiscuous mode.

encryptior
Posts: 6
Joined: Tue Jul 15, 2025 7:29 am

Re: How to change channel for WiFi AP into ESP32

Postby encryptior » Fri Aug 29, 2025 7:39 am

Yes for AP+STA the channel will be the same and STA channel has to match the AP the station is connecting to.
why have they set a AP channel config if it is bound to pick it up from STA directly. Can someone help here? We are trying to use esp32c5 as a bridge between 5GHz router and a 2.4GHz only compatible device
https://github.com/espressif/esp-idf/bl ... jbuild#L18

Ritesh
Posts: 1395
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: How to change channel for WiFi AP into ESP32

Postby Ritesh » Mon Sep 08, 2025 10:03 am

Yes for AP+STA the channel will be the same and STA channel has to match the AP the station is connecting to.
why have they set a AP channel config if it is bound to pick it up from STA directly. Can someone help here? We are trying to use esp32c5 as a bridge between 5GHz router and a 2.4GHz only compatible device
https://github.com/espressif/esp-idf/bl ... jbuild#L18
If you are using both AP and STA mode then channel will be dependent on like device STA which is connected with AP point of Router or Mobile Hot-Spot. So, If you set channel 4 but your STA is connected with configured router whose channel is 6 then your AP channel will be changed to 6 accordingly.

Above is approximate reason accordingly for channel perspective issues into AP+STA mode.

Let me know if you still have any query for the same.

Regards,
Ritesh Prajapati
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: PerplexityBot, PetalBot and 7 guests