From b197bba53be8e04494600a2787ae9c1128364772 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 20 Feb 2006 20:49:56 +0000 Subject: [PATCH] correct check for whether wpa is enabled MFC after: 3 days --- sys/dev/iwi/if_iwi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 0cd22efa8951..5d4c7a535b23 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);