libiwinfo: fix hw mode detection
SVN-Revision: 29417
This commit is contained in:
parent
7cfa39f032
commit
83e6c14f82
1 changed files with 2 additions and 0 deletions
|
@ -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++ )
|
||||
|
|
Loading…
Reference in a new issue