Hubert Feyrer points out that hw.ath.countrycode really ought to

be writeable.  Make hw.ath.outdoor writeable while I am here.
This commit is contained in:
dyoung 2004-08-18 21:59:39 +00:00
parent c388a506cb
commit c9108ddfc8
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ath.c,v 1.36 2004/08/10 01:03:52 dyoung Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
* Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.54 2004/04/05 04:42:42 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.36 2004/08/10 01:03:52 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $");
#endif
/*
@ -375,7 +375,7 @@ SYSCTL_SETUP(sysctl_ath, "sysctl ath subtree setup")
/* enable/disable outdoor operation */
if ((rc = sysctl_createv(clog, 0, NULL, &node,
CTLFLAG_PERMANENT|CTLFLAG_READONLY, CTLTYPE_INT,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
"outdoor", SYSCTL_DESCR("Enable/disable outdoor operation"),
NULL, 0, &ath_outdoor, 0,
CTL_HW, ath_node_num, CTL_CREATE,
@ -386,7 +386,7 @@ SYSCTL_SETUP(sysctl_ath, "sysctl ath subtree setup")
/* country code */
if ((rc = sysctl_createv(clog, 0, NULL, &node,
CTLFLAG_PERMANENT|CTLFLAG_READONLY, CTLTYPE_INT,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE, CTLTYPE_INT,
"countrycode", SYSCTL_DESCR("Country code"),
NULL, 0, &ath_countrycode, 0,
CTL_HW, ath_node_num, CTL_CREATE,