qcacld-3.0: Do not reset the tdls link status to tearing

If the force peer is removed from wpa_cli, then without
checking the current link status link status is set to tearing.
Then if the same peer is again marked as forced then that peer
status is not reset to idle and that can lead to tdls connection
denial of that peer.

Reset the tdls link status to tearing only in connected state.

Change-Id: Idd4128b4599fc2dfbb768984f8f9390fc14ab5f6
CRs-Fixed: 2551180
这个提交包含在:
Bala Venkatesh
2019-11-06 15:55:11 +05:30
提交者 nshrivas
父节点 c98f63fff7
当前提交 6e5f4b2e27

查看文件

@@ -1885,9 +1885,9 @@ QDF_STATUS tdls_process_remove_force_peer(struct tdls_oper_request *req)
status = QDF_STATUS_E_NULL_VALUE; status = QDF_STATUS_E_NULL_VALUE;
goto error; goto error;
} }
if (peer->link_status == TDLS_LINK_CONNECTED)
tdls_set_peer_link_status(peer, TDLS_LINK_TEARING, tdls_set_peer_link_status(peer, TDLS_LINK_TEARING,
TDLS_LINK_UNSPECIFIED); TDLS_LINK_UNSPECIFIED);
if (soc_obj->tdls_dp_vdev_update) if (soc_obj->tdls_dp_vdev_update)
soc_obj->tdls_dp_vdev_update(&soc_obj->soc, soc_obj->tdls_dp_vdev_update(&soc_obj->soc,