|
@@ -1335,7 +1335,6 @@ void tdls_send_update_to_fw(struct tdls_vdev_priv_obj *tdls_vdev_obj,
|
|
|
struct tdls_config_params *threshold_params;
|
|
|
uint32_t tdls_feature_flags;
|
|
|
QDF_STATUS status;
|
|
|
- uint8_t set_state_cnt;
|
|
|
bool tdls_mlo;
|
|
|
|
|
|
tdls_feature_flags = tdls_soc_obj->tdls_configs.tdls_feature_flags;
|
|
@@ -1344,21 +1343,8 @@ void tdls_send_update_to_fw(struct tdls_vdev_priv_obj *tdls_vdev_obj,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- set_state_cnt = tdls_soc_obj->set_state_info.set_state_cnt;
|
|
|
tdls_mlo = wlan_tdls_is_fw_11be_mlo_capable(tdls_soc_obj->soc);
|
|
|
|
|
|
- /* for mld tdls, it needs to set the second vdev,
|
|
|
- * set set_state_cnt to 0 to bypass the following check.
|
|
|
- */
|
|
|
- if (tdls_mlo && sta_connect_event && set_state_cnt == 1)
|
|
|
- set_state_cnt = 0;
|
|
|
-
|
|
|
- if ((set_state_cnt == 0 && !sta_connect_event) ||
|
|
|
- (set_state_cnt && sta_connect_event)) {
|
|
|
- tdls_debug("FW TDLS state is already in requested state");
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
/* If AP or caller indicated TDLS Prohibited then disable tdls mode */
|
|
|
if (sta_connect_event) {
|
|
|
if (tdls_prohibited) {
|
|
@@ -1435,26 +1421,15 @@ void tdls_send_update_to_fw(struct tdls_vdev_priv_obj *tdls_vdev_obj,
|
|
|
tdls_info_to_fw->tdls_discovery_wake_timeout =
|
|
|
tdls_soc_obj->tdls_configs.tdls_discovery_wake_timeout;
|
|
|
|
|
|
- /**
|
|
|
- * set_state_cnt should always decrement in case of sta disconnection.
|
|
|
- * If it is not, then in case where STA disconnection happens due to
|
|
|
- * SSR where tdls_update_fw_tdls_state() will return failure,
|
|
|
- * tdls count has to be decremented irrepective of success or failure
|
|
|
- */
|
|
|
- if (!sta_connect_event)
|
|
|
- tdls_soc_obj->set_state_info.set_state_cnt--;
|
|
|
-
|
|
|
status = tgt_tdls_set_fw_state(tdls_soc_obj->soc, tdls_info_to_fw);
|
|
|
if (QDF_IS_STATUS_ERROR(status))
|
|
|
goto done;
|
|
|
|
|
|
if (sta_connect_event) {
|
|
|
- tdls_soc_obj->set_state_info.set_state_cnt++;
|
|
|
tdls_soc_obj->set_state_info.vdev_id = session_id;
|
|
|
}
|
|
|
|
|
|
- tdls_debug("TDLS Set state cnt %d",
|
|
|
- tdls_soc_obj->set_state_info.set_state_cnt);
|
|
|
+ tdls_debug("FW tdls state sent for vdev id %d", session_id);
|
|
|
done:
|
|
|
qdf_mem_free(tdls_info_to_fw);
|
|
|
return;
|