projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5f637f
)
iwinfo: fix secondary radios being misreported as ralink device
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 25 Jul 2014 14:36:43 +0000
(14:36 +0000)
committer
Jo-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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41829
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/network/utils/iwinfo/src/iwinfo_utils.c
patch
|
blob
|
history
diff --git
a/package/network/utils/iwinfo/src/iwinfo_utils.c
b/package/network/utils/iwinfo/src/iwinfo_utils.c
index
1702ce8
..
4a82433
100644
(file)
--- 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 };
{
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;
if (!(db = fopen(IWINFO_HARDWARE_FILE, "r")))
return NULL;