qcacld-3.0: Update kck len when caching gtk offload req

On wlan suspend, kck sent as part of gtk offload request
is not populated properly since the kck_len is not
updated when caching the gtk request resulting in all
zeroes kck.

Fix is to update kck_len when saving gtk offload
request.

Change-Id: I9e4430565a04cff6da7f06d23a9542a2f53568b0
CRs-Fixed: 2502131
This commit is contained in:
Yeshwanth Sriram Guntuka 2019-08-06 14:18:33 +05:30 committed by nshrivas
parent 9358c67a57
commit e631341f12

View File

@ -5102,6 +5102,7 @@ void wlan_hdd_save_gtk_offload_params(struct hdd_adapter *adapter,
QDF_ASSERT(0);
}
qdf_mem_copy(gtk_req->kck, kck_ptr, kck_len);
gtk_req->kck_len = kck_len;
}
if (kek_ptr) {
@ -20581,8 +20582,10 @@ int __wlan_hdd_cfg80211_set_rekey_data(struct wiphy *wiphy,
gtk_req->replay_counter);
wlan_hdd_copy_gtk_kek(gtk_req, data);
if (data->kck)
if (data->kck) {
qdf_mem_copy(gtk_req->kck, data->kck, NL80211_KCK_LEN);
gtk_req->kck_len = NL80211_KCK_LEN;
}
gtk_req->is_fils_connection = hdd_is_fils_connection(adapter);
vdev = hdd_objmgr_get_vdev(adapter);
if (!vdev) {