summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2006-12-28 00:05:40 +0000
committerjkim <jkim@FreeBSD.org>2006-12-28 00:05:40 +0000
commitebf5b23a3edb6547310e4447c0471415648dfa1d (patch)
treec721272b6116821d746a4db3157fa177f8280863 /sys/dev/if_ndis
parent9d0b5905142545fd1c7dfe17e5724d8638a18adc (diff)
downloadFreeBSD-src-ebf5b23a3edb6547310e4447c0471415648dfa1d.zip
FreeBSD-src-ebf5b23a3edb6547310e4447c0471415648dfa1d.tar.gz
Fix shared authentication mode.
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c
index d90bd70..52c0f6a 100644
--- a/sys/dev/if_ndis/if_ndis.c
+++ b/sys/dev/if_ndis/if_ndis.c
@@ -2267,6 +2267,14 @@ ndis_setstate_80211(sc)
#endif
int keys_set = 0;
+#if __FreeBSD_version >= 600007
+ if (ic->ic_bss->ni_authmode == IEEE80211_AUTH_SHARED) {
+ len = sizeof(arg);
+ arg = NDIS_80211_AUTHMODE_SHARED;
+ ndis_set_info(sc, OID_802_11_AUTHENTICATION_MODE,
+ &arg, &len);
+ }
+#endif
for (i = 0; i < IEEE80211_WEP_NKID; i++) {
if (ic->ic_nw_keys[i].wk_keylen) {
#if __FreeBSD_version >= 600007
OpenPOWER on IntegriCloud