qcacld-3.0: Corrected logging in sap_fsm_state_init

The log signifying SAP failure was incorrectly printed.
Changed the logic to print those logs correctly

Change-Id: Ifc26b34f41c60a3ce50d9c7cfc4ecd0739853844
CRs-Fixed: 2680263
这个提交包含在:
Utkarsh Bhatnagar
2020-05-07 00:57:13 +05:30
提交者 nshrivas
父节点 2819c16758
当前提交 767aabd6e1

查看文件

@@ -2326,7 +2326,7 @@ static QDF_STATUS sap_fsm_state_init(struct sap_context *sap_ctx,
* request so, set the third to false.
*/
qdf_status = sap_validate_chan(sap_ctx, false, true);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
if (QDF_IS_STATUS_ERROR(qdf_status)) {
QDF_TRACE(QDF_MODULE_ID_SAP,
QDF_TRACE_LEVEL_ERROR,
FL("channel is not valid!"));
@@ -2335,7 +2335,7 @@ static QDF_STATUS sap_fsm_state_init(struct sap_context *sap_ctx,
qdf_status = sap_goto_starting(sap_ctx, sap_event,
mac_ctx, mac_handle);
if (!QDF_IS_STATUS_ERROR(qdf_status))
if (QDF_IS_STATUS_ERROR(qdf_status))
sap_err("sap_goto_starting failed");
} else if (msg == eSAP_DFS_CHANNEL_CAC_START) {
if (sap_ctx->is_chan_change_inprogress) {