Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia Allow userland to retrieve whether the card s...



details:   https://anonhg.NetBSD.org/src/rev/4ee273ae66de
branches:  trunk
changeset: 486490:4ee273ae66de
user:      enami <enami%NetBSD.org@localhost>
date:      Tue May 23 08:25:51 2000 +0000

description:
Allow userland to retrieve whether the card support WEP while the
card power is off.  This allows wiconfig to set WEP key etc while power off.

diffstat:

 sys/dev/pcmcia/if_wi.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 74e5b273b776 -r 4ee273ae66de sys/dev/pcmcia/if_wi.c
--- a/sys/dev/pcmcia/if_wi.c    Tue May 23 07:03:10 2000 +0000
+++ b/sys/dev/pcmcia/if_wi.c    Tue May 23 08:25:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wi.c,v 1.18 2000/05/14 17:19:18 drochner Exp $      */
+/*     $NetBSD: if_wi.c,v 1.19 2000/05/23 08:25:51 enami Exp $ */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -31,7 +31,7 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
- *     $Id: if_wi.c,v 1.18 2000/05/14 17:19:18 drochner Exp $
+ *     $Id: if_wi.c,v 1.19 2000/05/23 08:25:51 enami Exp $
  */
 
 /*
@@ -117,7 +117,7 @@
 
 #if !defined(lint)
 static const char rcsid[] =
-       "$Id: if_wi.c,v 1.18 2000/05/14 17:19:18 drochner Exp $";
+       "$Id: if_wi.c,v 1.19 2000/05/23 08:25:51 enami Exp $";
 #endif
 
 #ifdef foo
@@ -1079,6 +1079,9 @@
        case WI_RID_MAX_SLEEP:
                wreq->wi_val[0] = sc->wi_max_sleep;
                break;
+       case WI_RID_WEP_AVAIL:
+               wreq->wi_val[0] = sc->wi_has_wep;
+               break;
        case WI_RID_ENCRYPTION:
                wreq->wi_val[0] = sc->wi_use_wep;
                break;



Home | Main Index | Thread Index | Old Index