Browse Source

qcacmn: Add BKID only for sta mode

BKID is part of only assosciation and reassociation
request frames, So include it only for sta mode.

Change-Id: Ic43e20b46154a957a7290cdcc70615247949cba7
CRs-Fixed: 2398256
Arif Hussain 6 years ago
parent
commit
20a228a631
1 changed files with 3 additions and 1 deletions
  1. 3 1
      umac/cmn_services/crypto/src/wlan_crypto_global_api.c

+ 3 - 1
umac/cmn_services/crypto/src/wlan_crypto_global_api.c

@@ -3011,7 +3011,9 @@ uint8_t *wlan_crypto_build_wapiie(struct wlan_objmgr_vdev *vdev,
 	WLAN_CRYPTO_ADDSHORT(frm, crypto_params->rsn_caps);
 
 	/* bkid count */
-	WLAN_CRYPTO_ADDSHORT(frm, 0);
+	if (vdev->vdev_mlme.vdev_opmode == QDF_STA_MODE ||
+	    vdev->vdev_mlme.vdev_opmode == QDF_P2P_CLIENT_MODE)
+		WLAN_CRYPTO_ADDSHORT(frm, 0);
 
 	/* calculate element length */
 	iebuf[1] = frm - iebuf - 2;