summaryrefslogtreecommitdiff
path: root/iwinfo_lua.c
Commit message (Collapse)AuthorAgeFilesLines
* fix -Wdangling-else warningsAndre Heider2022-12-151-0/+2
| | | | | | It's less confusing with braces. Signed-off-by: Andre Heider <a.heider@gmail.com>
* ops: make support for wireless extensions optionalFelix Fietkau2022-09-221-0/+6
| | | | | | 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/+6
| | | | Signed-off-by: Joerg Werner <schreibubi@gmail.com>
* iwinfo: add 802.11ax HE rate informationDavid Bauer2021-05-021-3/+16
| | | | | | | | | This adds 802.11ax HE specific rate information to iwinfo. Add fields for HE status of a STA as well as DCM and guard interval fields specific to HE operation. Signed-off-by: David Bauer <mail@david-bauer.net>
* iwinfo: add basic IEEE 802.11ax supportDavid Bauer2021-04-121-0/+3
| | | | | | | | 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 support for GCMP cipherDaniel Golle2021-01-051-0/+3
| | | | | | | Extend support for WPA ciphers by GCMP which is required for 802.11ad. Breaks ABI as ciphers now needs to be a field of 16 bits instead of 8. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* Revert "iwinfo: add BSS load element to scan result"David Bauer2020-03-221-12/+0
| | | | | | | | | | | | This reverts commit a6914dc0dc3cba65e245fbe40076626ea2bcd5a3. iwinfo currently misses ABI version tracking in OpenWrt, potentially breaking other packages unintentionally. Revert this commit for now until this is implemented. Otherwise, we are not able to safely bump iwinfo at the moment. Signed-off-by: David Bauer <mail@david-bauer.net>
* iwinfo: add BSS load element to scan resultDavid Bauer2020-02-041-0/+12
| | | | | | | | This adds support for the BSS load information element. With this patch, the BSS load information is visible when using the CLI as well as when accessing scan results using the LUA binding. Signed-off-by: David Bauer <mail@david-bauer.net>
* lua: fix string description of mixed WPA3 modesJo-Philipp Wich2019-10-161-29/+22
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* iwinfo: Add support for WPA3Robert Marko2019-09-011-0/+13
| | | | | | | This patch adds support for WPA3, meaning SAE and OWE are now properly identified. This fixes iwinfo and LuCi showing WPA2 NONE for WPA3 SAE and OWE. Signed-off-by: Robert Marko <robimarko@gmail.com>
* iwinfo: Add support for 802.11adRobert Marko2019-03-211-0/+3
| | | | | | | | | | | This patch adds support for identifying, calculating channels from frequency and vice versa as well as Lua hwmode for 802.11ad. Support has been added for channels 1-6. Signed-off-by: Robert Marko <robimarko@gmail.com> [Increase buffer size for hwmodes] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* add support for expected throughputDaniel Golle2018-02-151-0/+5
| | | | | | | | | | cfg80211 allows drivers to announce the to-be-expected layer-2 datarate using the NL80211_STA_INFO_EXPECTED_THROUGHPUT field. This information is useful as a metric for user-space routing daemons, so grab it via nl80211 and make it available in both C and Lua APIs, and show expected throughput on CLI interface assoclist. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* lua: fix WPA cipher reportingJo-Philipp Wich2016-09-211-3/+3
| | | | | | | | | | | Use the same logic as the command line interface for reporting the used WPA ciphers. Instead of printing the intersection of pairwise and group ciphers, report both group and pairwise ciphers. This fixes a case where a connection which uses CCMP for pairwise and TKIP as groupwise cipher is getting reported as using the NONE cipher. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* lua: support reporting VHT ratesJo-Philipp Wich2016-01-251-29/+40
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* lua: fix possible out-of-bounds read in iwinfo_L_cryptotable()Jo-Philipp Wich2015-10-291-4/+4
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Fix -Wall -Wpedantic warningsJo-Philipp Wich2015-05-191-3/+3
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* iwinfo: add support for querying available HT modesJo-Philipp Wich2015-05-081-0/+31
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Initial commitJo-Philipp Wich2014-10-051-0/+901
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>