From 66736c857476550c68720a4cf933ab2f6d04031d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 Oct 2010 03:52:55 +0000 Subject: libiwinfo: add restricted flag for freqlist --- contrib/package/iwinfo/src/iwinfo_wext.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/package/iwinfo/src/iwinfo_wext.c') 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); -- cgit v1.2.3