aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-07-25 14:36:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-07-25 14:36:43 +0000
commit520854d0e92bc90ef7b38b104c725a2b610c0e65 (patch)
tree505c4f2292768f0fdc4c47cbd18b1b66df3504eb /package/network/utils
parentd5f637f327a4096e0af0943ecdb95a7630542378 (diff)
downloadmaster-187ad058-520854d0e92bc90ef7b38b104c725a2b610c0e65.tar.gz
master-187ad058-520854d0e92bc90ef7b38b104c725a2b610c0e65.tar.bz2
master-187ad058-520854d0e92bc90ef7b38b104c725a2b610c0e65.zip
iwinfo: fix secondary radios being misreported as ralink device
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41829 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils')
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_utils.c b/package/network/utils/iwinfo/src/iwinfo_utils.c
index 1702ce88f6..4a824337a9 100644
--- a/package/network/utils/iwinfo/src/iwinfo_utils.c
+++ b/package/network/utils/iwinfo/src/iwinfo_utils.c
@@ -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;