summaryrefslogtreecommitdiff
path: root/iwinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* iwinfo: fix compilation error with GCC 12Christian 'Ansuel' Marangi2022-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | Fix compilation error with GCC 12. In file included from /home/ansuel/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/libubus.h:23, from iwinfo.c:21: In function 'blobmsg_close_array', inlined from 'rpc_iwinfo_assoclist' at iwinfo.c:643:3: /home/ansuel/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/libubox/blobmsg.h:250:9: error: 'c' may be used uninitialized [-Werror=maybe-uninitialized] 250 | blob_nest_end(buf, cookie); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ iwinfo.c: In function 'rpc_iwinfo_assoclist': iwinfo.c:564:15: note: 'c' was declared here 564 | void *c, *d, *e; | ^ cc1: all warnings being treated as errors ninja: build stopped: subcommand failed. Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
* treewide: adjust ubus object type namesJo-Philipp Wich2021-12-081-1/+1
| | | | | | | Drop the historically inherited "luci-rpc-" prefix and replace it with a more appropriate "rpcd-plugin-" string. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* iwinfo: add 802.11ax HE supportDavid Bauer2021-05-051-0/+45
| | | | | | | Expose 802.11ax HE rate as well as HW / HT mode information. This is required to add 802.11ax support to LuCI. Signed-off-by: David Bauer <mail@david-bauer.net>
* iwinfo: include ht_operation data only if availableAnsuel Smith2021-01-061-5/+7
| | | | | | Check if ht_operation data are present and add them accordingly. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* iwinfo: return hwmode 'ad' on 802.11ad-only hardwareDaniel Golle2021-01-051-0/+6
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* iwinfo: add support for 802.11ad and GCMPDaniel Golle2021-01-051-0/+6
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* iwinfo: export center channel for info ubus callAnsuel Smith2021-01-051-0/+2
| | | | | | | Iwinfo export the center channel sued by the wifi. Include this data in the ubus info call to better know the channel utilizzation of the wifi. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* iwinfo: add ht and vht operation info to wifi scanAnsuel Smith2021-01-051-1/+15
| | | | | | | Iwinfo exports ht and vht operation info useful to get channel info of nearby stations. Add these new info to ubus output. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* iwinfo: add current hw and ht mode to info callDaniel Danzberger2020-01-051-0/+44
| | | | Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
* iwinfo: add WPA3 supportJo-Philipp Wich2019-09-091-10/+10
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* iwinfo: expose all rate info fields in assoclist replyJo-Philipp Wich2019-09-041-8/+22
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* iwinfo: add mesh infos in assoclist.Daniel Danzberger2019-03-051-0/+7
| | | | Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
* iwinfo: add survey.Daniel Danzberger2019-03-051-0/+40
| | | | Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
* iwinfo: show more stats from assoclist.Daniel Danzberger2019-03-051-0/+16
| | | | Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
* iwinfo: expose available HT ratesJo-Philipp Wich2016-06-301-0/+36
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* iwinfo: zero out ccode buffer since library doesn'tDenis Osvald2016-06-051-1/+1
| | | | | | | | | | | Making an ubus call iwinfo countrylist '{"device":"radio0"}' will result in some entries having garbage uninitialized stack bytes in the "code" fields. With this patch we zero-initialize the buffer that libiwinfo writes to, making it NUL-terminated so that behavior doesn't happen anymore. Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
* iwinfo: add phyname procedureJo-Philipp Wich2015-02-111-0/+59
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* iwinfo: add support for requesting assoc info for a specific mac addressFelix Fietkau2014-11-291-13/+54
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* iwinfo: add 802.11ac hw modeFelix Fietkau2014-10-201-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* iwinfo: use UBUS_METHOD_NOARGFelix Fietkau2014-10-041-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fix segmentation fault when plugins are loadedLuka Perkov2014-01-291-1/+1
| | | | | | | | Function rpc_plugin_register_library() is modifying the struct's contents in list_add() call. That said, the rpc_plugin struct should not be defined as const. This caused segmentation fault when built on up-to-date Arch Linux. Signed-off-by: Luka Perkov <luka@openwrt.org>
* fix whitespacesLuka Perkov2014-01-291-2/+2
| | | | Signed-off-by: Luka Perkov <luka@openwrt.org>
* Extend copyrightJo-Philipp Wich2014-01-121-1/+1
|
* Move includes into subdirectoryJo-Philipp Wich2013-09-041-1/+1
|
* Fold plugin specific headers files into the plugins .c fileJo-Philipp Wich2013-09-021-1/+7
|
* Rename from "luci-rpcd" to "rpcd"Jo-Philipp Wich2013-09-021-1/+1
|
* iwinfo: convert to plugin libraryJo-Philipp Wich2013-09-021-4/+7
|
* iwinfo: expose phyname attributeJo-Philipp Wich2013-06-111-0/+2
|
* iwinfo: finish apiJo-Philipp Wich2013-02-031-73/+426
|
* add ubus iwinfo api (lacks scanning, assoclist, countrylist and txpowerlist yet)Jo-Philipp Wich2013-02-021-0/+293