libiwinfo: fix hw mode detection

SVN-Revision: 29417
This commit is contained in:
Jo-Philipp Wich 2011-12-03 18:13:38 +00:00
parent 7cfa39f032
commit 83e6c14f82

View 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++ )