qcacld-3.0: validate sbs HW mode set

PM_SBS/PM_SBS_DOWNGRADE action should not
be executed again if current hw mode is sbs.

Change-Id: I9bf2666c559dbf6a3ad73aec7ee94db7c50b82a7
CRs-Fixed: 2375652
This commit is contained in:
Liangwei Dong
2018-12-27 22:48:30 -05:00
committed by nshrivas
parent 0ec24dc0ab
commit 77ff66cad4

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -934,7 +934,7 @@ QDF_STATUS policy_mgr_validate_dbs_switch(
/* current mode is already SBS nothing to be
* done
*/
if (hw_mode.sbs_cap && action == PM_SBS) {
if (hw_mode.sbs_cap) {
policy_mgr_notice("current mode is already SBS");
return QDF_STATUS_E_ALREADY;
}