summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wicontrol/wicontrol.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-05-06 16:32:45 +0000
committerwpaul <wpaul@FreeBSD.org>1999-05-06 16:32:45 +0000
commit07346f9ac9fe802fcc05cd359908c49f1f272028 (patch)
tree15f4d90c511ecb7a88130a0dee59552c001f028c /usr.sbin/wicontrol/wicontrol.c
parent8b3db0e8228985fa682b3e2e72ab560619831fbc (diff)
downloadFreeBSD-src-07346f9ac9fe802fcc05cd359908c49f1f272028.zip
FreeBSD-src-07346f9ac9fe802fcc05cd359908c49f1f272028.tar.gz
Modify wicontrol(8) and wi(4) to allow setting the frequency of the
WaveLAN's radio modem. The default is whatever the NIC uses since NICs sold in different countries may default to different frequencies. (The Lose95/LoseNT software doesn't let you select the channel so it's probably not really meant to be changed.)
Diffstat (limited to 'usr.sbin/wicontrol/wicontrol.c')
-rw-r--r--usr.sbin/wicontrol/wicontrol.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/wicontrol/wicontrol.c b/usr.sbin/wicontrol/wicontrol.c
index 87cd90e..4bd0200 100644
--- a/usr.sbin/wicontrol/wicontrol.c
+++ b/usr.sbin/wicontrol/wicontrol.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: wicontrol.c,v 1.15 1999/05/06 03:05:48 wpaul Exp $
+ * $Id: wicontrol.c,v 1.16 1999/05/06 16:12:06 wpaul Exp $
*/
#include <sys/types.h>
@@ -56,7 +56,7 @@
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
Bill Paul. All rights reserved.";
static const char rcsid[] =
- "@(#) $Id: wicontrol.c,v 1.15 1999/05/06 03:05:48 wpaul Exp $";
+ "@(#) $Id: wicontrol.c,v 1.16 1999/05/06 16:12:06 wpaul Exp $";
#endif
static void wi_getval __P((char *, struct wi_req *));
@@ -438,7 +438,7 @@ int main(argc, argv)
char *iface = NULL;
char *p = argv[0];
- while((ch = getopt(argc, argv, "hoc:d:i:p:r:q:t:n:s:m:")) != -1) {
+ while((ch = getopt(argc, argv, "hoc:d:f:i:p:r:q:t:n:s:m:")) != -1) {
switch(ch) {
case 'o':
wi_dumpstats(iface);
@@ -455,6 +455,10 @@ int main(argc, argv)
wi_setword(iface, WI_RID_MAX_DATALEN, atoi(optarg));
exit(0);
break;
+ case 'f':
+ wi_setword(iface, WI_RID_OWN_CHNL, atoi(optarg));
+ exit(0);
+ break;
case 'p':
wi_setword(iface, WI_RID_PORTTYPE, atoi(optarg));
exit(0);
OpenPOWER on IntegriCloud