qcacmn: Add WMI changes for Dynamic HW mode configuration
This feature enables user to change HW mode dynamically from DBS to DBS_SBS mode and vice-versa. Currently, HW mode configuration is only possible through INI setting requiring a subsequent reboot. Relevant WMI changes are: 1. Relocate API wmi_unified_soc_set_hw_mode_cmd from wmi_unified_sta_api.c to wmi_unified_api.c 2. Define API wmi_unified_extract_hw_mode_resp to extract FW response 3. Parse and store new dev-cap fields wireless_modes, low_2ghz_chan_freq, high_2ghz_chan_freq, low_5ghz_chan_freq, and high_5ghz_chan_freq. Change-Id: I49f975e7c5abc8503b651a3ebd4d56b23af915db CRs-fixed: 2490212
This commit is contained in:

committed by
nshrivas

parent
8e0ae99446
commit
fe3cca9bd1
@@ -469,6 +469,32 @@ void *wmi_unified_get_pdev_handle(struct wmi_soc *soc, uint32_t pdev_idx);
|
||||
void wmi_process_fw_event(struct wmi_unified *wmi_handle, wmi_buf_t evt_buf);
|
||||
uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle);
|
||||
|
||||
/**
|
||||
* wmi_unified_soc_set_hw_mode_cmd() - Send WMI_SOC_SET_HW_MODE_CMDID to FW
|
||||
* @wmi_handle: wmi handle
|
||||
* @hw_mode_index: The HW_Mode field is a enumerated type that is selected
|
||||
* from the HW_Mode table, which is returned in the WMI_SERVICE_READY_EVENTID.
|
||||
*
|
||||
* Request HardWare (HW) Mode change to WLAN firmware
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_soc_set_hw_mode_cmd(wmi_unified_t wmi_handle,
|
||||
uint32_t hw_mode_index);
|
||||
|
||||
/**
|
||||
* wmi_extract_hw_mode_resp() - function to extract HW mode change response
|
||||
* @wmi_hdl: WMI handle
|
||||
* @evt_buf: Buffer holding event data
|
||||
* @cmd_status: command status
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS if success, else returns proper error code.
|
||||
*/
|
||||
QDF_STATUS
|
||||
wmi_unified_extract_hw_mode_resp(wmi_unified_t wmi,
|
||||
void *evt_buf,
|
||||
uint32_t *cmd_status);
|
||||
|
||||
/**
|
||||
* wmi_unified_vdev_create_send() - send VDEV create command to fw
|
||||
* @wmi_handle: wmi handle
|
||||
|
Reference in New Issue
Block a user