diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-21 12:33:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-21 12:33:10 +0000 |
commit | 2d06acd6ac6850712f4a9b2c344f2016f8f1774c (patch) | |
tree | a2c09a55390bac647d02a19c4e2c60f3b41f58dc /package/network/utils/iwinfo/src/include/iwinfo.h | |
parent | 55131c5f425b1a9aa6f8772a9c339e0bd80ba2fb (diff) | |
download | upstream-2d06acd6ac6850712f4a9b2c344f2016f8f1774c.tar.gz upstream-2d06acd6ac6850712f4a9b2c344f2016f8f1774c.tar.bz2 upstream-2d06acd6ac6850712f4a9b2c344f2016f8f1774c.zip |
iwinfo: keep an array of backends, reduce the number of ifdefs and hardcoded strcmp calls
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40809
Diffstat (limited to 'package/network/utils/iwinfo/src/include/iwinfo.h')
-rw-r--r-- | package/network/utils/iwinfo/src/include/iwinfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/include/iwinfo.h b/package/network/utils/iwinfo/src/include/iwinfo.h index ebea319d10..1302d159b9 100644 --- a/package/network/utils/iwinfo/src/include/iwinfo.h +++ b/package/network/utils/iwinfo/src/include/iwinfo.h @@ -148,6 +148,9 @@ extern const struct iwinfo_iso3166_label IWINFO_ISO3166_NAMES[]; struct iwinfo_ops { + const char *name; + + int (*probe)(const char *ifname); int (*mode)(const char *, int *); int (*channel)(const char *, int *); int (*frequency)(const char *, int *); |