Re: ioctl() to get information of wlan mode (a/b/g/n) ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


leo mueller wrote:

> is there a possibility to determine in which wlan mode my card/driver
> currently works?
> like an ioctl()-call or sth... ?

You might be able to get it using ioctl(SIOCGIWNAME); this returns a
string describing the interface, but some drivers just return the
driver name. The parameter is a pointer to a "union iwreq_data"
(defined in linux/wireless.h); the name field will be filled by the

> is it also possible to fetch wlan
> statistics (rx/tx) via ioctl()?
> if yes, which params are neccessary?

You can get packet/byte counts for any interface from /proc/net/dev.

Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux