[package] libiwinfo: fix hw mode detection
[openwrt.git] / 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++ )
This page took 0.022093 seconds and 4 git commands to generate.