libiwinfo: fix hw mode detection
SVN-Revision: 29417
This commit is contained in:
parent
7cfa39f032
commit
83e6c14f82
@ -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 New Issue
Block a user