diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-03 18:13:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-03 18:13:38 +0000 |
commit | 0f2f3e734d6a4460e2002a0a98136c92ebb8450f (patch) | |
tree | 288c782ab7c128e4f4a421946a19790da9fc7915 /package/iwinfo/src/iwinfo_wext.c | |
parent | e4bdc2f753ba4e0457fd7d0073aee59dab508f16 (diff) | |
download | upstream-0f2f3e734d6a4460e2002a0a98136c92ebb8450f.tar.gz upstream-0f2f3e734d6a4460e2002a0a98136c92ebb8450f.tar.bz2 upstream-0f2f3e734d6a4460e2002a0a98136c92ebb8450f.zip |
[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/src/iwinfo_wext.c')
-rw-r--r-- | package/iwinfo/src/iwinfo_wext.c | 2 |
1 files changed, 2 insertions, 0 deletions
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++ ) |