Library to access wireless devices, inspired from OpenWRT without UCI
Find a file
Christian Marangi 7e3d7ded29
iwinfo: reorganize iwinfo header to enum and defines
iwinfo.h have a mixed way to declare defines, some use enum, some define
bits in enum and other have their own special way. In all of this case
the count of all this defines is hardcoded to an arbitrary number.

To make code less error prone, convert everything to a common pattern
and use enum way to calculate the count of each flags.

Also drop defining number for each flag and just declare that the enum
starts from 0.

Move the related char array just below the define declaration to improve
code readability.

No functionl change intended.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-01-20 17:26:54 +01:00
api nl80211: update the kernel header nl80211.h 2022-12-15 23:42:32 +01:00
include iwinfo: reorganize iwinfo header to enum and defines 2023-01-20 17:26:54 +01:00
COPYING Initial commit 2014-10-05 19:56:27 +02:00
devices.txt devices: add USB devices supported by the mt76 driver 2023-01-20 16:08:00 +01:00
iwinfo_cli.c cli: describe USB devices as such 2023-01-20 16:08:00 +01:00
iwinfo_lib.c lib: add IWINFO_80211_COUNT and IWINFO_80211_NAMES 2022-12-16 00:09:07 +01:00
iwinfo_lua.c fix -Wdangling-else warnings 2022-12-15 20:07:49 +01:00
iwinfo_madwifi.c iwinfo: set center chan unsupported for not-nl80211 driver 2021-01-06 17:38:07 +00:00
iwinfo_nl80211.c devices: add support for declaring compatible matched devices 2023-01-10 00:26:50 +01:00
iwinfo_nl80211.h nl80211: fix code calculating average signal and rate 2018-04-09 07:30:37 +02:00
iwinfo_utils.c utils: skip comment lines when parsing devices.txt 2023-01-20 16:08:00 +01:00
iwinfo_wext.c iwinfo: set center chan unsupported for not-nl80211 driver 2021-01-06 17:38:07 +00:00
iwinfo_wext.h Initial commit 2014-10-05 19:56:27 +02:00
iwinfo_wext_scan.c wext_scan: fix possibly unterminated ifname string 2015-10-29 10:53:32 +01:00
iwinfo_wl.c iwinfo: set center chan unsupported for not-nl80211 driver 2021-01-06 17:38:07 +00:00
Makefile enable useful compiler warnings via -Wall 2022-12-15 20:07:27 +01:00