summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src/iwinfo_wext.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-19 03:52:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-19 03:52:55 +0000
commit66736c857476550c68720a4cf933ab2f6d04031d (patch)
tree418d9e383c13ab15bba54a18d6948cdba1278287 /contrib/package/iwinfo/src/iwinfo_wext.c
parentf01178a19a94abfd98442cec532fcd43e91009b0 (diff)
libiwinfo: add restricted flag for freqlist
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_wext.c')
-rw-r--r--contrib/package/iwinfo/src/iwinfo_wext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_wext.c b/contrib/package/iwinfo/src/iwinfo_wext.c
index e9e79e3757..298fd93178 100644
--- a/contrib/package/iwinfo/src/iwinfo_wext.c
+++ b/contrib/package/iwinfo/src/iwinfo_wext.c
@@ -444,8 +444,9 @@ int wext_get_freqlist(const char *ifname, char *buf, int *len)
for(i = 0; i < range.num_frequency; i++)
{
- entry.mhz = wext_freq2mhz(&range.freq[i]);
- entry.channel = range.freq[i].i;
+ entry.mhz = wext_freq2mhz(&range.freq[i]);
+ entry.channel = range.freq[i].i;
+ entry.restricted = 0;
memcpy(&buf[bl], &entry, sizeof(struct iwinfo_freqlist_entry));
bl += sizeof(struct iwinfo_freqlist_entry);