X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/22eab0b03806b8704f2fd3c4dc48c4559765c069..b4c2371ebb2af4f08a7928bba82a3c3f77989f3e:/package/wlcompat/src/wlcompat.c diff --git a/package/wlcompat/src/wlcompat.c b/package/wlcompat/src/wlcompat.c index d849be855..3e869ea79 100644 --- a/package/wlcompat/src/wlcompat.c +++ b/package/wlcompat/src/wlcompat.c @@ -482,7 +482,7 @@ static int wlcompat_get_scan(struct net_device *dev, /* send frequency/channel info */ iwe.cmd = SIOCGIWFREQ; iwe.u.freq.e = 0; - iwe.u.freq.m = bss_info->chanspec; + iwe.u.freq.m = bss_info->chanspec & WL_CHANSPEC_CHAN_MASK; current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, IW_EV_FREQ_LEN); /* add quality statistics */