From 56d2b07be135916b5d0c62f891892f8f538a2d94 Mon Sep 17 00:00:00 2001 From: ichiro Date: Tue, 2 Apr 2002 16:59:14 +0000 Subject: [PATCH] fix channel list to be 1-14. txrate parameter value determines the rate at which the Probe request frames will be sent. bit0 1Mbps bit1 2M bit3 5.5M bit4 11M --- usr.sbin/wiconfig/wiconfig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/wiconfig/wiconfig.c b/usr.sbin/wiconfig/wiconfig.c index 5b2279bdb70f..cd30da995c2e 100644 --- a/usr.sbin/wiconfig/wiconfig.c +++ b/usr.sbin/wiconfig/wiconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: wiconfig.c,v 1.23 2002/03/04 01:28:09 dbj Exp $ */ +/* $NetBSD: wiconfig.c,v 1.24 2002/04/02 16:59:14 ichiro Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul . All rights reserved. @@ -69,7 +69,7 @@ static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\ Bill Paul. All rights reserved."; static const char rcsid[] = - "@(#) $Id: wiconfig.c,v 1.23 2002/03/04 01:28:09 dbj Exp $"; + "@(#) $Id: wiconfig.c,v 1.24 2002/04/02 16:59:14 ichiro Exp $"; #endif struct wi_table { @@ -180,8 +180,8 @@ static void wi_apscan(iface) wreq.wi_type = WI_RID_SCAN_APS; wreq.wi_len = 4; /* note chan. 1 is the least significant bit */ - wreq.wi_val[0] = 0x7ff; /* 1 bit per channel, 1-11 */ - wreq.wi_val[1] = 3; /* tx rate */ + wreq.wi_val[0] = 0x3fff; /* 1 bit per channel, 1-14 */ + wreq.wi_val[1] = 0xf; /* tx rate */ /* write the request */ wi_setval(iface, &wreq);