From 2fe5f060b3265b7636d1427d5ff90e8417e44ca7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 3 Dec 2011 18:13:38 +0000 Subject: [PATCH] [package] libiwinfo: fix hw mode detection SVN-Revision: 29417 --- package/iwinfo/src/iwinfo_wext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/iwinfo/src/iwinfo_wext.c b/package/iwinfo/src/iwinfo_wext.c index 314882ad91..283f77e9f8 100644 --- a/package/iwinfo/src/iwinfo_wext.c +++ b/package/iwinfo/src/iwinfo_wext.c @@ -428,6 +428,8 @@ int wext_get_hwmodelist(const char *ifname, int *buf) struct iwinfo_freqlist_entry *e = NULL; int len = 0; + *buf = 0; + if( !wext_get_freqlist(ifname, chans, &len) ) { for( e = (struct iwinfo_freqlist_entry *)chans; e->channel; e++ ) -- 2.30.2