iwinfo: keep an array of backends, reduce the number of ifdefs and hardcoded strcmp...
[openwrt/openwrt.git] / package / network / utils / iwinfo / src / include / iwinfo / wext.h
index e84f6a6f9222423e6366468382d961cfa0afacfd..22016c69ac12ed32fae256651ce4d10980db1426 100644 (file)
@@ -55,6 +55,8 @@ int wext_get_hardware_name(const char *ifname, char *buf);
 void wext_close(void);
 
 static const struct iwinfo_ops wext_ops = {
+       .name             = "wext",
+       .probe            = wext_probe,
        .channel          = wext_get_channel,
        .frequency        = wext_get_frequency,
        .frequency_offset = wext_get_frequency_offset,