瀏覽代碼

qcacld-3.0: Send PMKID in PMKSA delete command

When delete pmksa is received, firmware looks up the entries
against the vdev mac address and the AP bssid. But during
disconnect, when update mac address happens, the pmksa entry in
firmware is not deleted since the self mac address lookup fails.
This causes roaming failures after next connection.

Send PMKID in the PMKSA delete command to delete the individual
pmksa entries based on PMKID alone.

Change-Id: Icf9ff2dc8aa85ffa212167ce1691fe18fe3a23c5
CRs-Fixed: 3363253
Pragaspathi Thilagaraj 2 年之前
父節點
當前提交
d987cd9e12
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -22988,13 +22988,13 @@ static void hdd_fill_pmksa_info(struct hdd_adapter *adapter,
 			  pmk_cache->cache_id[0],
 			  pmk_cache->cache_id[1]);
 	}
+	qdf_mem_copy(pmk_cache->pmkid, pmksa->pmkid, PMKID_LEN);
 
 	hdd_fill_pmksa_lifetime(pmksa, pmk_cache);
 
 	if (is_delete)
 		return;
 
-	qdf_mem_copy(pmk_cache->pmkid, pmksa->pmkid, PMKID_LEN);
 	if (pmksa->pmk_len && (pmksa->pmk_len <= MAX_PMK_LEN)) {
 		qdf_mem_copy(pmk_cache->pmk, pmksa->pmk, pmksa->pmk_len);
 		pmk_cache->pmk_len = pmksa->pmk_len;