WPA/802.11i interoperability fixes:

o only include capabilities word in the WPA ie when non-zero and
  not preauth
o always include the capabilities in the RSN ie

Obtained from:	Atheros
This commit is contained in:
sam 2005-06-07 00:08:48 +00:00
parent a191919892
commit 24d4beb312

View File

@ -728,7 +728,7 @@ ieee80211_setup_wpa_ie(struct ieee80211com *ic, u_int8_t *ie)
}
/* optional capabilities */
if (rsn->rsn_caps != 0)
if (rsn->rsn_caps != 0 && rsn->rsn_caps != RSN_CAP_PREAUTH)
ADDSHORT(frm, rsn->rsn_caps);
/* calculate element length */
@ -811,7 +811,6 @@ ieee80211_setup_rsn_ie(struct ieee80211com *ic, u_int8_t *ie)
}
/* optional capabilities */
if (rsn->rsn_caps != 0)
ADDSHORT(frm, rsn->rsn_caps);
/* XXX PMKID */