summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravatar <avatar@FreeBSD.org>2005-06-02 01:51:16 +0000
committeravatar <avatar@FreeBSD.org>2005-06-02 01:51:16 +0000
commitbb0683448edc2a4b6cb58dff4f8f7a1a8b8acd99 (patch)
tree44bbd9d8c9e5760c05582fbdca5b6339f1435a9f
parent7de9a3957f49a3d2defeb896784a44358d279dd0 (diff)
downloadFreeBSD-src-bb0683448edc2a4b6cb58dff4f8f7a1a8b8acd99.zip
FreeBSD-src-bb0683448edc2a4b6cb58dff4f8f7a1a8b8acd99.tar.gz
Honouring current authmode setting. With this patch, my wi card can now
associate to an AP which uses shared WEP key authentication. Tested with: "ifconfig wi0 authmode shared" Reviewed by: imp, sam
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 09e149a..c3ace2d 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -751,8 +751,10 @@ wi_init(void *arg)
}
/* Configure WEP. */
- if (ic->ic_caps & IEEE80211_C_WEP)
+ if (ic->ic_caps & IEEE80211_C_WEP) {
+ sc->sc_cnfauthmode = ic->ic_bss->ni_authmode;
wi_write_wep(sc);
+ }
/* Set multicast filter. */
wi_write_multi(sc);
OpenPOWER on IntegriCloud