瀏覽代碼

qcacmn: Fix issue in green AP feature

Green AP feature for WIN allows the AP to go into power save mode
and leads to only a single chain being active.

In the current code, it is seen that the WMI API for enabling Green
AP feature is under "FEATURE_GREEN_AP" flag that is not defined for
WIN. This leads to trigger of dummy API that does no operation.

Replace "FEATURE_GREEN_AP" with proper flag "ATH_SUPPORT_GREEN_AP"
defined on WIN to enable Green AP feature.

Change-Id: I344e74c3753f1ef3b6d5d5a2bb1086c84f2ab84c
CRs-Fixed: 1074036
Sathish Kumar 8 年之前
父節點
當前提交
39a5657e3f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      wmi/src/wmi_unified_api.c

+ 2 - 2
wmi/src/wmi_unified_api.c

@@ -251,7 +251,7 @@ QDF_STATUS wmi_unified_peer_create_send(void *wmi_hdl,
 	return QDF_STATUS_E_FAILURE;
 }
 
-#ifdef FEATURE_GREEN_AP
+#if defined(FEATURE_GREEN_AP) || defined(ATH_SUPPORT_GREEN_AP)
 /**
  * wmi_unified_green_ap_ps_send() - enable green ap powersave command
  * @wmi_handle: wmi handle
@@ -277,7 +277,7 @@ QDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl,
 {
 	return 0;
 }
-#endif /* FEATURE_GREEN_AP */
+#endif /* FEATURE_GREEN_AP or ATH_SUPPORT_GREEN_AP*/
 
 /**
  * wmi_unified_pdev_utf_cmd() - send utf command to fw