diff options
author | jkim <jkim@FreeBSD.org> | 2006-12-28 00:05:40 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2006-12-28 00:05:40 +0000 |
commit | ebf5b23a3edb6547310e4447c0471415648dfa1d (patch) | |
tree | c721272b6116821d746a4db3157fa177f8280863 /sys/dev | |
parent | 9d0b5905142545fd1c7dfe17e5724d8638a18adc (diff) | |
download | FreeBSD-src-ebf5b23a3edb6547310e4447c0471415648dfa1d.zip FreeBSD-src-ebf5b23a3edb6547310e4447c0471415648dfa1d.tar.gz |
Fix shared authentication mode.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/if_ndis/if_ndis.c | 8 |
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 |