[backfire] iwinfo: merge r29417
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 3 Dec 2011 18:46:06 +0000 (18:46 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 3 Dec 2011 18:46:06 +0000 (18:46 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@29418 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/iwinfo/src/iwinfo_wext.c

index 314882a..283f77e 100644 (file)
@@ -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++ )