diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-10-05 10:26:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-27 13:48:19 +0100 |
commit | fe7133f7e5a4faca63b6d939c6d55d09d8c240fb (patch) | |
tree | b9737f5b2831697c23a3128999d0f040ded5a94f /include | |
parent | 8ae758db52957939eeb6bc1c7da7be9d0339d3aa (diff) | |
download | iwinfo-fe7133f7e5a4faca63b6d939c6d55d09d8c240fb.tar.gz |
iwinfo: fix handling of accessing nl80211 interfaces via radio*
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
Diffstat (limited to 'include')
-rw-r--r-- | include/iwinfo/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/iwinfo/utils.h b/include/iwinfo/utils.h index d58ec5f..d4f32e4 100644 --- a/include/iwinfo/utils.h +++ b/include/iwinfo/utils.h @@ -21,11 +21,14 @@ #include <sys/socket.h> #include <net/if.h> +#include <uci.h> #include "iwinfo.h" #define LOG10_MAGIC 1.25892541179 +extern struct uci_context *uci_ctx; + int iwinfo_ioctl(int cmd, void *ifr); int iwinfo_dbm2mw(int in); @@ -44,4 +47,7 @@ int iwinfo_hardware_id_from_mtd(struct iwinfo_hardware_id *id); void iwinfo_parse_rsn(struct iwinfo_crypto_entry *c, uint8_t *data, uint8_t len, uint8_t defcipher, uint8_t defauth); +struct uci_section *iwinfo_uci_get_radio(const char *name, const char *type); +void iwinfo_uci_free(void); + #endif |