aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-09 08:06:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-09 08:06:17 +0000
commit8474a88acaddaed9c021b9dff90e42bb4d7f8e7f (patch)
tree35cb1b175a4ed27d35422cab484a92a587aaf1fc
parentda33e887f1ff1fb49d3af653071e56e807ef37a3 (diff)
downloadmaster-187ad058-8474a88acaddaed9c021b9dff90e42bb4d7f8e7f.tar.gz
master-187ad058-8474a88acaddaed9c021b9dff90e42bb4d7f8e7f.tar.bz2
master-187ad058-8474a88acaddaed9c021b9dff90e42bb4d7f8e7f.zip
fix scanning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@597 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/openwrt/wlcompat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/openwrt/wlcompat.c b/package/openwrt/wlcompat.c
index aa1c1d9098..b6a9c20b7f 100644
--- a/package/openwrt/wlcompat.c
+++ b/package/openwrt/wlcompat.c
@@ -158,7 +158,7 @@ static int wlcompat_get_scan(struct net_device *dev,
char *current_val;
char *end_buf = extra + IW_SCAN_MAX_DATA;
struct iw_event iwe;
- int i;
+ int i, j;
if (wl_ioctl(dev, WLC_SCAN_RESULTS, buf, WLC_IOCTL_MAXLEN) < 0)
return -EAGAIN;
@@ -199,8 +199,8 @@ static int wlcompat_get_scan(struct net_device *dev,
current_val = current_ev + IW_EV_LCP_LEN;
iwe.u.bitrate.fixed = iwe.u.bitrate.disabled = 0;
- for(i = 0 ; i < bss_info->rateset.count ; i++) {
- iwe.u.bitrate.value = ((bss_info->rateset.rates[i] & 0x7f) * 500000);
+ for(j = 0 ; j < bss_info->rateset.count ; j++) {
+ iwe.u.bitrate.value = ((bss_info->rateset.rates[j] & 0x7f) * 500000);
current_val = iwe_stream_add_value(current_ev, current_val, end_buf, &iwe, IW_EV_PARAM_LEN);
}
if((current_val - current_ev) > IW_EV_LCP_LEN)