From ebf5b23a3edb6547310e4447c0471415648dfa1d Mon Sep 17 00:00:00 2001 From: jkim Date: Thu, 28 Dec 2006 00:05:40 +0000 Subject: Fix shared authentication mode. --- sys/dev/if_ndis/if_ndis.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/dev/if_ndis') 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 -- cgit v1.1