summaryrefslogtreecommitdiffstats
path: root/package/iwinfo
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-12-03 18:13:38 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-12-03 18:13:38 +0000
commitec376e8870e7adc1b6fb76913cf007b336e7f546 (patch)
tree288c782ab7c128e4f4a421946a19790da9fc7915 /package/iwinfo
parent11a837ce029534fc38f6deb2a2f31d80fe5a1f7f (diff)
[package] libiwinfo: fix hw mode detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29417 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo')
-rw-r--r--package/iwinfo/src/iwinfo_wext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/iwinfo/src/iwinfo_wext.c b/package/iwinfo/src/iwinfo_wext.c
index 314882ad9..283f77e9f 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++ )