Browse Source

qcacld-3.0: Clear RSN CAP When set IE for WAPI connection

RSN CAP isn't needed and set when set IE for WAPI connection, if last
connection is WPA2, vdev crypto params rsn caps is set, it need to be
cleared, or RSN CAP is set for WAPI, WAPI connection may fail.

change-Id: I2120751576b0ab260077e013ef88428238e53896
CRs-Fixed: 2841012
Jianmin Zhu 4 years ago
parent
commit
71a4da9d4e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 2 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -19900,6 +19900,8 @@ static void hdd_set_wapi_crypto_key_mgmt_param(struct hdd_adapter *adapter)
 				   set_val);
 	wlan_crypto_set_vdev_param(vdev, WLAN_CRYPTO_PARAM_MCAST_CIPHER,
 				   set_val);
+
+	wlan_crypto_set_vdev_param(vdev, WLAN_CRYPTO_PARAM_RSN_CAP, 0);
 	hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_ID);
 }
 #endif