iwinfo: fix secondary radios being misreported as ralink device

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 41829
This commit is contained in:
Jo-Philipp Wich 2014-07-25 14:36:43 +00:00
parent eaa3c4a11d
commit bd7642f1a9

View File

@ -132,7 +132,8 @@ struct iwinfo_hardware_entry * iwinfo_hardware(struct iwinfo_hardware_id *id)
{ {
FILE *db; FILE *db;
char buf[256] = { 0 }; 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"))) if (!(db = fopen(IWINFO_HARDWARE_FILE, "r")))
return NULL; return NULL;