ECSA - Extended Channel Switch Announcement is not working

Hi @tirth21

The ecsa_info command is only used to communicate the ECSA parameters from hostapd to our driver. hostapd is responsible for triggering the beacon.

As such, you will want to use hostapd_cli_s1g on an AP configured device to trigger an ECSA.

hostapd_cli_s1g chan_switch <cs_count> <freq> [prim_bandwidth=] [sec_channel_offset=] [center_freq1=] [center_freq2=] [bandwidth=]

For example, if I have an AP configured on AU channel 44 (freq: 924 MHz, bw: 8 MHz), I can trigger a switch to channel 42 (freq: 923 MHz, bw: 2 MHz) by running the following command

root@ekh03-68a441:~# morsectrl -i wlan0 channel
Full Channel Information
        Operating Frequency: 924000 kHz
        Operating BW: 8 MHz
        Primary BW: 2 MHz
        Primary Channel Index: 3

root@ekh03-68a441:~# hostapd_cli_s1g chan_switch 10 922500 prim_bandwidth=1 sec_channel_offset=1 center_freq1=923000 bandwidth=2
Selected interface 'wlan0'
OK

root@ekh03-68a441:~# morsectrl -i wlan0 channel
Full Channel Information
        Operating Frequency: 923000 kHz
        Operating BW: 2 MHz
        Primary BW: 1 MHz
        Primary Channel Index: 0

Note that we don’t currently support switching to the same 1 MHz primary channel.

For mesh devices, you would need to use wpa_cli_s1g. However, the ECSA functionality for mesh devices is still under development. We’re planning to look at implementing it soon.