qcacmn: Post tdls connet/disconnect event to target_if queue

TDLS will update tdls firmware state according to STA connection status,
the change is to post tdls connect/disconnect event to target_if queue,
otherwise these events will be scheduled too late which would be out of
sync, cause unexpected results.

Change-Id: I76d70339f236b580bfb98fb1b8f5121784cb3465
CRs-Fixed: 2269978
This commit is contained in:
Frank Liu
2018-06-29 11:58:08 +08:00
committed by nshrivas
parent ced1918365
commit 1a3151ed20

View File

@@ -636,7 +636,7 @@ QDF_STATUS ucfg_tdls_notify_sta_connect(
msg.bodyptr = notify;
msg.callback = tdls_process_cmd;
msg.type = TDLS_NOTIFY_STA_CONNECTION;
scheduler_post_msg(QDF_MODULE_ID_OS_IF, &msg);
scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg);
tdls_debug("Exit ");
return QDF_STATUS_SUCCESS;
@@ -669,7 +669,7 @@ QDF_STATUS ucfg_tdls_notify_sta_disconnect(
msg.bodyptr = notify;
msg.callback = tdls_process_cmd;
msg.type = TDLS_NOTIFY_STA_DISCONNECTION;
scheduler_post_msg(QDF_MODULE_ID_OS_IF, &msg);
scheduler_post_msg(QDF_MODULE_ID_TARGET_IF, &msg);
tdls_debug("Exit ");