qcacld-3.0: Handle FW not support SBS
If FW doesn't support SBS, return QDF_STATUS_E_NOSUPPORT
to allow connect request in current HW mode.
Change-Id: Ie960fe993ea95cf40dd43fb56c71edd94efda63b
CRs-Fixed: 2370206
diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c
index 14ad6bf..eec5c2e 100644
--- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c
+++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c
@@ -925,21 +925,20 @@
return status;
}
- if (hw_mode.sbs_cap) {
- if ((action == PM_SBS) || (action == PM_SBS_DOWNGRADE)) {
- if (!policy_mgr_is_hw_sbs_capable(psoc)) {
- /* No action */
- policy_mgr_notice("firmware is not sbs capable");
- return QDF_STATUS_E_NOSUPPORT;
- }
- /* current mode is already SBS nothing to be
- * done
- */
- policy_mgr_notice("current mode is already SBS");
- return QDF_STATUS_E_ALREADY;
- } else {
- return QDF_STATUS_SUCCESS;
+ if ((action == PM_SBS) || (action == PM_SBS_DOWNGRADE)) {
+ if (!policy_mgr_is_hw_sbs_capable(psoc)) {
+ /* No action */
+ policy_mgr_notice("firmware is not sbs capable");
+ return QDF_STATUS_E_NOSUPPORT;
}
+ /* current mode is already SBS nothing to be
+ * done
+ */
+ if (hw_mode.sbs_cap && action == PM_SBS) {
+ policy_mgr_notice("current mode is already SBS");
+ return QDF_STATUS_E_ALREADY;
+ }
+ return QDF_STATUS_SUCCESS;
}
if (!hw_mode.dbs_cap) {