简体   繁体   中英

Enabling CSA in hostapd

I am using hostapd_cli( http://www.freebsd.org/cgi/man.cgi?query=hostapd_cli&sektion=8 ) to interact with my hostapd to change the channel. I am using "chan_switch" command to switch channels.

But this command gets failed with "CSA is not supported" as the error message. Any inputs on how I should go about solving this issue would be greatly appreciated.

CSA is Channel Switch Announcement; which goes inside the beacon to let connected station know that AP is changing the channel. For this things to work device/hw/firmware should able to configure CSA-IE.

In your case, either the device doesn't support CSA or it supports it but have not notified the same in its capabilities.

If you just want to change the channel, which will make stations connected to disconnect first and then reconnect, then you can just change the 'channel' field in hostapd.conf and just reload by 'kill -1'.

As per your question, I have tried chan_switch using hostapd_cli without killing hostapd. All you need to do is update your backports version, in my case, I am using backports-4.2.6-1. Just build it and then you can try chan_switch if channel switch is possible it should give OK message else FAIL. I have tried it with more than 10 interfaces at the same time and I was able to change the channel. Attached a screen shot for reference. Hope this helps..!! ![在此处输入图像说明 ] 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM