How to know the frequency of AP mode
greearb at candelatech.com
Mon Nov 20 09:56:59 PST 2017
Try ethtool stats maybe?
That should work for at least some drivers.
On 11/20/2017 09:46 AM, Grégoire Gentil wrote:
> My question is summarized here:
> "On Linux, I'm using hostapd in AP mode. In other words, the system is the hotspot.
> I would like to know what is the frequency of the Wi-Fi via c code (or a bash script that I could translate to c code).
> The following code which queries the kernel, only works in normal mode. It fails in AP mode.
> ioctl(net_sock, SIOCGIWFREQ, &wrq);
> In bash, I have tried:
> iw dev
> but it doesn't report the frequency of the Wi-Fi. Same problem: it only reports in normal mode when the system associates to a router but nothing in AP mode.
> How can I query hostapd to know the frequency hostapd is using or is configured to use?"
> Hostap mailing list
> Hostap at lists.infradead.org
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Hostap