summaryrefslogtreecommitdiff
path: root/include/iwinfo
Commit message (Collapse)AuthorAgeFilesLines
* utils: add iwinfo_band2ghz() and iwinfo_ghz2band() helpersAndre Heider2022-12-161-0/+3
| | | | | | To classify bands, to be used as ubus values. Signed-off-by: Andre Heider <a.heider@gmail.com>
* utils: add helper functions to get names by valuesAndre Heider2022-12-161-0/+3
| | | | | | | | | Some defines/enums use bits, while some functions only set a single one. Make it less painful to get to a name for those. This avoids hardcoding bit lists for consumers. Signed-off-by: Andre Heider <a.heider@gmail.com>
* utils: add iwinfo_htmode_is_{ht|vht|he} helpersAndre Heider2022-12-161-0/+3
| | | | | | Small and useful functions which allow to clear up some consumers. Signed-off-by: Andre Heider <a.heider@gmail.com>
* utils: add and use iwinfo_format_hwmodes()Andre Heider2022-12-161-0/+2
| | | | | | | | | | Unify how hwmodes are displayed, e.g.: "802.11ac/ax/b/g/n" instead of "802.11bgnacax". Luci currently uses a natural sort order, but that probably doesn't work as intended once "be" is added, so let's do this here. Signed-off-by: Andre Heider <a.heider@gmail.com>
* iwinfo: add support for GCMP cipherDaniel Golle2021-01-051-1/+1
| | | | | | | 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-2/+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/+2
| | | | | | | | 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>
* utils: add simple ubus query supportJo-Philipp Wich2018-07-241-0/+4
| | | | | | | Some wireless runtime parameters are not available via nl80211, e.g. the effective Mesh ID so we need to fetch those from ubus state info. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* nl80211: read TX power using NL80211_CMD_GET_INTERFACERafał Miłecki2015-10-051-0/+4
| | | | | | | | | With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in interface info") it is possible now to get TX power using nl80211. As we don't really support any wext-only drivers it doesn't make sense to leave wext as a fallback. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* iwinfo: move ARRAY_SIZE macro to iwinfo/utils.hJo-Philipp Wich2015-05-081-0/+4
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* iwinfo: fix handling of accessing nl80211 interfaces via radio*nbd2014-10-271-0/+6
| | | | | | | | look up device path via uci instead of assuming a direct phy index Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42759 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Initial commitJo-Philipp Wich2014-10-052-0/+126
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>