summaryrefslogtreecommitdiff
path: root/iwinfo_lib.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: add IWINFO_FREQ_FLAG_NAMESAndre Heider2023-01-201-0/+12
| | | | | | | The same as with the other defines/enums which allow consumers to iterate over all known ones. Signed-off-by: Andre Heider <a.heider@gmail.com>
* lib: add IWINFO_80211_COUNT and IWINFO_80211_NAMESAndre Heider2022-12-161-0/+10
| | | | | | | The same as with the other defines/enums which allow consumers to iterate over all known ones. Signed-off-by: Andre Heider <a.heider@gmail.com>
* lib: add IWINFO_BAND_COUNT and IWINFO_BAND_NAMESAndre Heider2022-12-161-0/+7
| | | | Signed-off-by: Andre Heider <a.heider@gmail.com>
* lib: use common IWINFO_CIPHER_NAMES stringsAndre Heider2022-12-151-2/+2
| | | | | | | | Use a hyphen for the WEP cipher names, just as the others. Not that anyone cares anymore, but this let's us use this array instead of everyone fixing it up on their own. Signed-off-by: Andre Heider <a.heider@gmail.com>
* lib: add IWINFO_OPMODE_COUNT and use it for IWINFO_OPMODE_NAMESAndre Heider2022-12-151-1/+1
| | | | | | Match the other string arrays, which allows us to consistently loop over them. Signed-off-by: Andre Heider <a.heider@gmail.com>
* lib: constify and fixup the string array definitionsAndre Heider2022-12-151-5/+5
| | | | | | Match their declarations as per the header. Signed-off-by: Andre Heider <a.heider@gmail.com>
* fix -Wduplicate-decl-specifier warningsAndre Heider2022-12-151-0/+18
| | | | | | | | | | include/iwinfo.h:209:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] 209 | static const char const *ht_secondary_offset[4] = { | ^~~~~ Constify and move the offenders out of the header. Signed-off-by: Andre Heider <a.heider@gmail.com>
* ops: make support for wireless extensions optionalFelix Fietkau2022-09-221-0/+2
| | | | | | It is usually not needed anymore and only wastes space Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Add support for CCMP-256 and GCMP-256 ciphersJoerg Werner2022-08-201-0/+3
| | | | Signed-off-by: Joerg Werner <schreibubi@gmail.com>
* iwinfo: Add missing auth_suites mappings for WPA3Tjeu Kayim2022-08-131-0/+2
| | | | | | | | | | | | | | `iwinfo.h` says: #define IWINFO_KMGMT_COUNT 5 ... extern const char *IWINFO_KMGMT_NAMES[IWINFO_KMGMT_COUNT]; Though only only 3 items are defined. The other two were forgotten when adding WPA3 support. The `auth_suites` table exposed via Lua never included the items "SAE" and "OWE" until this commit. Fixes: f8ef45065207 ("iwinfo: Add support for WPA3") Signed-off-by: Tjeu Kayim <15987676+TjeuKayim@users.noreply.github.com>
* iwinfo: add basic IEEE 802.11ax supportDavid Bauer2021-04-121-1/+6
| | | | | | | | This adds basic support for IEEE 802.11ax when requesting HW or HT Modelist for a PHY from iwinfo. This way, applications using iwinfo can detect HE phys. Signed-off-by: David Bauer <mail@david-bauer.net>
* iwinfo: add missing HT modename for HT-NoneDavid Bauer2020-03-221-0/+1
| | | | | | | | | | | | | | Commit bf2c1069a7f1 ("nl80211: add htmode to iwinfo_ops") increased IWINFO_HTMODE_COUNT but left the size of the IWINFO_HTMODE_NAMES array untouched, leading to a segmentation fault when trying to get the HT modelist from Lua. Add a dummy NOHT modestring to make the array size fit the size declaration. Fixes: bf2c1069a7f1 ("nl80211: add htmode to iwinfo_ops") Signed-off-by: David Bauer <mail@david-bauer.net>
* iwinfo: add support for querying available HT modesJo-Philipp Wich2015-05-081-0/+10
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* iwinfo: move ARRAY_SIZE macro to iwinfo/utils.hJo-Philipp Wich2015-05-081-4/+0
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* lib: add iwinfo_backend_by_name()Jo-Philipp Wich2014-10-271-0/+11
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Initial commitJo-Philipp Wich2014-10-051-0/+361
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>