Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Indicate WEP capability to association request wh...



details:   https://anonhg.NetBSD.org/src/rev/5c930790eb17
branches:  trunk
changeset: 494702:5c930790eb17
user:      onoe <onoe%NetBSD.org@localhost>
date:      Tue Jul 11 12:54:00 2000 +0000

description:
Indicate WEP capability to association request when WEP is enabled.
Without this fix, some (IEEE802.11 conformant) APs will send data to this
station without using WEP.

diffstat:

 sys/dev/ic/awi.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 690ddb9460b1 -r 5c930790eb17 sys/dev/ic/awi.c
--- a/sys/dev/ic/awi.c  Tue Jul 11 12:43:50 2000 +0000
+++ b/sys/dev/ic/awi.c  Tue Jul 11 12:54:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: awi.c,v 1.23 2000/07/10 14:36:17 onoe Exp $    */
+/*     $NetBSD: awi.c,v 1.24 2000/07/11 12:54:00 onoe Exp $    */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -2233,7 +2233,11 @@
        asreq = (u_int8_t *)&wh[1];
 
        /* capability info */
-       LE_WRITE_2(asreq, IEEE80211_CAPINFO_CF_POLLABLE);
+       if (sc->sc_wep_algo == NULL)
+               LE_WRITE_2(asreq, IEEE80211_CAPINFO_CF_POLLABLE);
+       else
+               LE_WRITE_2(asreq,
+                   IEEE80211_CAPINFO_CF_POLLABLE | IEEE80211_CAPINFO_PRIVACY);
        asreq += 2;
        /* listen interval */
        lintval = LE_READ_2(&sc->sc_mib_mgt.aListen_Interval);
@@ -2801,6 +2805,8 @@
                    wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK);
                break;
        }
+       if (wh->i_fc[1] & IEEE80211_FC1_WEP)
+               printf(" WEP");
        if (rssi >= 0)
                printf(" +%d", rssi);
        printf("\n");



Home | Main Index | Thread Index | Old Index