diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-19 03:52:55 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-19 03:52:55 +0000 |
commit | 66736c857476550c68720a4cf933ab2f6d04031d (patch) | |
tree | 418d9e383c13ab15bba54a18d6948cdba1278287 /contrib/package/iwinfo/src/iwinfo_madwifi.c | |
parent | f01178a19a94abfd98442cec532fcd43e91009b0 (diff) |
libiwinfo: add restricted flag for freqlist
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_madwifi.c')
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_madwifi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_madwifi.c b/contrib/package/iwinfo/src/iwinfo_madwifi.c index 9c3bb2688a..5289f42e0f 100644 --- a/contrib/package/iwinfo/src/iwinfo_madwifi.c +++ b/contrib/package/iwinfo/src/iwinfo_madwifi.c @@ -805,8 +805,9 @@ int madwifi_get_freqlist(const char *ifname, char *buf, int *len) for( i = 0; i < chans.ic_nchans; i++ ) { - entry.mhz = chans.ic_chans[i].ic_freq; - entry.channel = chans.ic_chans[i].ic_ieee; + entry.mhz = chans.ic_chans[i].ic_freq; + entry.channel = chans.ic_chans[i].ic_ieee; + entry.restricted = 0; memcpy(&buf[bl], &entry, sizeof(struct iwinfo_freqlist_entry)); bl += sizeof(struct iwinfo_freqlist_entry); |