correct check for whether wpa is enabled

MFC after:	3 days
This commit is contained in:
Sam Leffler 2006-02-20 20:49:56 +00:00
parent 29d9f7f03b
commit b197bba53b

View File

@ -2380,7 +2380,7 @@ iwi_auth_and_assoc(struct iwi_softc *sc)
assoc.auth = ic->ic_crypto.cs_def_txkey << 4 | IWI_AUTH_SHARED; assoc.auth = ic->ic_crypto.cs_def_txkey << 4 | IWI_AUTH_SHARED;
if ((ic->ic_flags & IEEE80211_F_WME) && ni->ni_wme_ie != NULL) if ((ic->ic_flags & IEEE80211_F_WME) && ni->ni_wme_ie != NULL)
assoc.policy |= htole16(IWI_POLICY_WME); 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); assoc.policy |= htole16(IWI_POLICY_WPA);
memcpy(assoc.tstamp, ni->ni_tstamp.data, 8); memcpy(assoc.tstamp, ni->ni_tstamp.data, 8);