diff options
author | sam <sam@FreeBSD.org> | 2006-02-20 20:49:56 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-02-20 20:49:56 +0000 |
commit | 85bed07a4fe469c8980ee9beeb75e76688470723 (patch) | |
tree | 3f7496d51807c200a203aed1d68d2ec7d4391839 | |
parent | 5cbd541c0b4d11f314a6868241b844c7261c9743 (diff) | |
download | FreeBSD-src-85bed07a4fe469c8980ee9beeb75e76688470723.zip FreeBSD-src-85bed07a4fe469c8980ee9beeb75e76688470723.tar.gz |
correct check for whether wpa is enabled
MFC after: 3 days
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 0cd22ef..5d4c7a5 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -2380,7 +2380,7 @@ iwi_auth_and_assoc(struct iwi_softc *sc) assoc.auth = ic->ic_crypto.cs_def_txkey << 4 | IWI_AUTH_SHARED; if ((ic->ic_flags & IEEE80211_F_WME) && ni->ni_wme_ie != NULL) assoc.policy |= htole16(IWI_POLICY_WME); - if (ic->ic_opt_ie != NULL) + if (ic->ic_flags & IEEE80211_F_WPA) assoc.policy |= htole16(IWI_POLICY_WPA); memcpy(assoc.tstamp, ni->ni_tstamp.data, 8); |