qcacmn: Add optional cabapilites in WPA ie

Add optional cabapilites in WPA ie.

Change-Id: I9be9e5f79837fe21a109d7e4c881023403297736
Dieser Commit ist enthalten in:
Ashok Kumar Ponnaiah
2018-09-05 10:16:23 +05:30
committet von nshrivas
Ursprung cf7d57c5f6
Commit ac40b6beda

Datei anzeigen

@@ -2379,6 +2379,13 @@ uint8_t *wlan_crypto_build_wpaie(struct wlan_objmgr_vdev *vdev,
selcnt[0]++;
WPA_ADD_KEYMGMT_TO_SUITE(frm, WLAN_CRYPTO_KEY_MGMT_NONE);
}
/* optional capabilities */
if (crypto_params->rsn_caps != 0 &&
crypto_params->rsn_caps != WLAN_CRYPTO_RSN_CAP_PREAUTH) {
WLAN_CRYPTO_ADDSHORT(frm, crypto_params->rsn_caps);
}
/* calculate element length */
iebuf[1] = frm - iebuf - 2;