iwinfo: fix secondary radios being misreported as ralink device
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 25 Jul 2014 14:36:43 +0000 (14:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 25 Jul 2014 14:36:43 +0000 (14:36 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 41829

package/network/utils/iwinfo/src/iwinfo_utils.c

index 1702ce88f6d18fdfdb3a447f70a14f002d03cb7d..4a824337a973bee371e447298295c2471f0bcc10 100644 (file)
@@ -132,7 +132,8 @@ struct iwinfo_hardware_entry * iwinfo_hardware(struct iwinfo_hardware_id *id)
 {
        FILE *db;
        char buf[256] = { 0 };
-       static struct iwinfo_hardware_entry e, *rv = NULL;
+       static struct iwinfo_hardware_entry e;
+       struct iwinfo_hardware_entry *rv = NULL;
 
        if (!(db = fopen(IWINFO_HARDWARE_FILE, "r")))
                return NULL;