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
This commit is contained in:
yeshwanth sriram guntuka 2017-03-14 15:35:21 +05:30 • committed by Sandeep Puligilla
commit e345b66378

View file

@ -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 */