iwinfo: keep an array of backends, reduce the number of ifdefs and hardcoded strcmp...
[openwrt.git] / package / network / utils / iwinfo / src / include / iwinfo.h
index ebea319..1302d15 100644 (file)
@@ -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 *);