Переглянути джерело

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
Liangwei Dong 6 роки тому
батько
коміт
3dca400cba
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

+ 2 - 2
cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

@@ -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;
 		}