diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-05 10:26:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-05 10:26:05 +0000 |
commit | 349b20c197f56eb68a14d76df226c9ccfda9e98e (patch) | |
tree | 01d699d9c05b7ad24441ad72548e5c7331ba31cc /package/network/utils/iwinfo/src/include | |
parent | 0e439d8a2a8b116e83091423ea843c4dc37ad10d (diff) | |
download | upstream-349b20c197f56eb68a14d76df226c9ccfda9e98e.tar.gz upstream-349b20c197f56eb68a14d76df226c9ccfda9e98e.tar.bz2 upstream-349b20c197f56eb68a14d76df226c9ccfda9e98e.zip |
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>
SVN-Revision: 42759
Diffstat (limited to 'package/network/utils/iwinfo/src/include')
-rw-r--r-- | package/network/utils/iwinfo/src/include/iwinfo/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/include/iwinfo/utils.h b/package/network/utils/iwinfo/src/include/iwinfo/utils.h index d58ec5fb75..d4f32e4d1e 100644 --- a/package/network/utils/iwinfo/src/include/iwinfo/utils.h +++ b/package/network/utils/iwinfo/src/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 |