qcacld-3.0: Remove connected peer count check to reset the tdls peers

Currently, in function tdls_process_reset_all_peers before checking
the tdls peer state connected peer count is checked and if is zero
then returned without checking the peer id. If peer is created
but the peer count is not increased then TDLS component will not
notify to delete the peer and this can lead to subsequent add peer
denials.

Change-Id: I2fd1d6945eb9dca478f11cd05ba0ee4a9ed007ea
CRs-Fixed: 2524442
This commit is contained in:
Bala Venkatesh 2019-09-11 17:20:10 +05:30 committed by nshrivas
parent bbeb655bc8
commit 540dca4c31

View File

@ -489,11 +489,6 @@ static QDF_STATUS tdls_process_reset_all_peers(struct wlan_objmgr_vdev *vdev)
return status;
}
if (!tdls_soc->connected_peer_count) {
tdls_debug("No tdls connected peers");
return status;
}
reset_session_id = tdls_vdev->session_id;
for (staidx = 0; staidx < tdls_soc->max_num_tdls_sta;
staidx++) {