summaryrefslogtreecommitdiff
path: root/package/iwinfo
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-03 18:13:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-03 18:13:38 +0000
commit83e6c14f82f6c2d9028f4ec9f4da943c0e524345 (patch)
treeb64b88878b8d2de547f64f91e120b5c963dd9930 /package/iwinfo
parent7cfa39f0325e73783c32c3d158b57bca4ab6fa9d (diff)
downloadmtk-20170518-83e6c14f82f6c2d9028f4ec9f4da943c0e524345.zip
mtk-20170518-83e6c14f82f6c2d9028f4ec9f4da943c0e524345.tar.gz
mtk-20170518-83e6c14f82f6c2d9028f4ec9f4da943c0e524345.tar.bz2
libiwinfo: fix hw mode detection
SVN-Revision: 29417
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 314882a..283f77e 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++ )