|
@@ -1054,87 +1054,6 @@ QDF_STATUS wma_send_dbs_scan_selection_params(WMA_HANDLE handle,
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
-#ifdef WLAN_SUPPORT_GREEN_AP
|
|
|
-
|
|
|
-
|
|
|
- * wma_egap_info_status_event() - egap info status event
|
|
|
- * @handle: pointer to wma handler
|
|
|
- * @event: pointer to event
|
|
|
- * @len: len of the event
|
|
|
- *
|
|
|
- * Return: 0 for success, otherwise appropriate error code
|
|
|
- */
|
|
|
-static int wma_egap_info_status_event(void *handle, u_int8_t *event,
|
|
|
- uint32_t len)
|
|
|
-{
|
|
|
- WMI_TX_PAUSE_EVENTID_param_tlvs *param_buf;
|
|
|
- wmi_ap_ps_egap_info_event_fixed_param *egap_info_event;
|
|
|
- wmi_ap_ps_egap_info_chainmask_list *chainmask_event;
|
|
|
- u_int8_t *buf_ptr;
|
|
|
-
|
|
|
- param_buf = (WMI_TX_PAUSE_EVENTID_param_tlvs *)event;
|
|
|
- if (!param_buf) {
|
|
|
- WMA_LOGE("Invalid EGAP Info status event buffer");
|
|
|
- return -EINVAL;
|
|
|
- }
|
|
|
- egap_info_event = (wmi_ap_ps_egap_info_event_fixed_param *)
|
|
|
- param_buf->fixed_param;
|
|
|
- buf_ptr = (uint8_t *)egap_info_event;
|
|
|
- buf_ptr += sizeof(wmi_ap_ps_egap_info_event_fixed_param);
|
|
|
- chainmask_event = (wmi_ap_ps_egap_info_chainmask_list *)buf_ptr;
|
|
|
- WMA_LOGD("mac_id: %d, status: %d, tx_mask: %x, rx_mask: %d",
|
|
|
- chainmask_event->mac_id,
|
|
|
- egap_info_event->status,
|
|
|
- chainmask_event->tx_chainmask,
|
|
|
- chainmask_event->rx_chainmask);
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * wma_setup_egap_support() - setup the EGAP support flag
|
|
|
- * @tgt_cfg: pointer to hdd target configuration
|
|
|
- * @egap_support: EGAP support flag
|
|
|
- *
|
|
|
- * Return: None
|
|
|
- */
|
|
|
-void wma_setup_egap_support(struct wma_tgt_cfg *tgt_cfg, WMA_HANDLE handle)
|
|
|
-{
|
|
|
- tp_wma_handle wma_handle = (tp_wma_handle) handle;
|
|
|
-
|
|
|
- if (tgt_cfg && wma_handle)
|
|
|
- tgt_cfg->egap_support = wma_handle->egap_support;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
- * wma_register_egap_event_handle() - register the EGAP event handle
|
|
|
- * @wma_handle: wma handler
|
|
|
- *
|
|
|
- * Return: None
|
|
|
- */
|
|
|
-void wma_register_egap_event_handle(WMA_HANDLE handle)
|
|
|
-{
|
|
|
- tp_wma_handle wma_handle = (tp_wma_handle) handle;
|
|
|
- QDF_STATUS status;
|
|
|
-
|
|
|
- if (wmi_service_enabled(wma_handle->wmi_handle,
|
|
|
- wmi_service_egap)) {
|
|
|
- status = wmi_unified_register_event_handler(
|
|
|
- wma_handle->wmi_handle,
|
|
|
- wmi_ap_ps_egap_info_event_id,
|
|
|
- wma_egap_info_status_event,
|
|
|
- WMA_RX_SERIALIZER_CTX);
|
|
|
- if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- WMA_LOGE("Failed to register Enhance Green AP event");
|
|
|
- wma_handle->egap_support = false;
|
|
|
- } else {
|
|
|
- WMA_LOGI("Set the Enhance Green AP event handler");
|
|
|
- wma_handle->egap_support = true;
|
|
|
- }
|
|
|
- } else
|
|
|
- wma_handle->egap_support = false;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
|
|
|
* wma_unified_fw_profiling_cmd() - send FW profiling cmd to WLAN FW
|
|
|
* @wma: wma handle
|