瀏覽代碼

qcacld-3.0: Send WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID if BPF enabled

Send WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID only if BPF is enabled in .ini
file.

Change-Id: Ia093cfaa0ff44e4052150ee943e363ca6412cbe0
CRs-Fixed: 2362929
Ajit Pal Singh 6 年之前
父節點
當前提交
ce05896f39
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/wma/src/wma_dev_if.c

+ 2 - 1
core/wma/src/wma_dev_if.c

@@ -3053,7 +3053,8 @@ struct cdp_vdev *wma_vdev_attach(tp_wma_handle wma_handle,
 		WMA_LOGE("Failed to get value for WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED, leaving unchanged");
 	}
 
-	if (self_sta_req->type == WMI_VDEV_TYPE_STA) {
+	if ((self_sta_req->type == WMI_VDEV_TYPE_STA) &&
+	    (ucfg_pmo_is_apf_enabled(wma_handle->psoc))) {
 		ret = wma_config_active_apf_mode(wma_handle,
 						 self_sta_req->session_id);
 		if (QDF_IS_STATUS_ERROR(ret))