Browse Source

qcacld-3.0: Fix double peer clear during disconnect

wma_remove_peer does clear peer as part of disconnect.
hdd_roam_deregister_sta also does clear peer which results
in clear peer failed error message.

Fix is to avoid clear peer again in disconnect handler.

Change-Id: I0399a81779aad87201cb67e070421ec549b2d837
CRs-Fixed: 2019168
yeshwanth sriram guntuka 8 years ago
parent
commit
e345b66378
1 changed files with 0 additions and 9 deletions
  1. 0 9
      core/hdd/src/wlan_hdd_assoc.c

+ 0 - 9
core/hdd/src/wlan_hdd_assoc.c

@@ -1682,15 +1682,6 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter,
 			sme_remove_bssid_from_scan_list(pHddCtx->hHal,
 			pHddStaCtx->conn_info.bssId.bytes);
 		}
-		/* We should clear all sta register with TL,
-		 * for now, only one.
-		 */
-		vstatus = hdd_roam_deregister_sta(pAdapter, sta_id);
-		if (!QDF_IS_STATUS_SUCCESS(vstatus)) {
-			hdd_err("hdd_roam_deregister_sta() failed to for staID %d. Status= %d [0x%x]",
-				sta_id, status, status);
-			status = QDF_STATUS_E_FAILURE;
-		}
 		pHddCtx->sta_to_adapter[sta_id] = NULL;
 	}
 	/* Clear saved connection information in HDD */