fix channel/frequency returned by scan
authorMike Baker <mbm@openwrt.org>
Mon, 9 Jul 2007 21:27:13 +0000 (21:27 +0000)
committerMike Baker <mbm@openwrt.org>
Mon, 9 Jul 2007 21:27:13 +0000 (21:27 +0000)
SVN-Revision: 7903

package/wlcompat/Makefile
package/wlcompat/src/wlcompat.c

index 1870c99d0f89776f87101a799a7820f56d51ce04..78f301a38270dd666b3f7d91d42ea6bbbbc17291 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=kmod-wlcompat
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
 
index d849be855f8818a15700f9ab065c4c886a01e376..3e869ea7958f8ca957d7c90b4f79e82096e5d35f 100644 (file)
@@ -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 */