aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-07-09 21:27:13 +0000
committerMike Baker <mbm@openwrt.org>2007-07-09 21:27:13 +0000
commit7b0c49e413e09cb94b0f76fe52dd632eaee0972f (patch)
tree00bf91a314c055a82a9d5ea29af80663bc55df4d /package
parent358221dfd2c339569bff2b5d6d8a4002915f6e69 (diff)
downloadupstream-7b0c49e413e09cb94b0f76fe52dd632eaee0972f.tar.gz
upstream-7b0c49e413e09cb94b0f76fe52dd632eaee0972f.tar.bz2
upstream-7b0c49e413e09cb94b0f76fe52dd632eaee0972f.zip
fix channel/frequency returned by scan
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7903 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/wlcompat/Makefile2
-rw-r--r--package/wlcompat/src/wlcompat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/wlcompat/Makefile b/package/wlcompat/Makefile
index 1870c99d0f..78f301a382 100644
--- a/package/wlcompat/Makefile
+++ b/package/wlcompat/Makefile
@@ -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)
diff --git a/package/wlcompat/src/wlcompat.c b/package/wlcompat/src/wlcompat.c
index d849be855f..3e869ea795 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 */