aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iwinfo
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
commitbd7642f1a96453eb6b6af9c13e861d413eac9afa (patch)
treeee886f975e19c5d066b7d09bfdf6673022bf200d /package/network/utils/iwinfo
parenteaa3c4a11de7272c77a61305cc3de30a73310d27 (diff)
downloadupstream-bd7642f1a96453eb6b6af9c13e861d413eac9afa.tar.gz
upstream-bd7642f1a96453eb6b6af9c13e861d413eac9afa.tar.bz2
upstream-bd7642f1a96453eb6b6af9c13e861d413eac9afa.zip
iwinfo: fix secondary radios being misreported as ralink device
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 41829
Diffstat (limited to 'package/network/utils/iwinfo')
-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;