qcacmn: Set country code for full-offload using iwpriv command

For full-offload, send user country code to FW using WMI
command.

Change-Id: I84acbd7ce30aa9a8ce590c8fadea2cb5914240fe
CRs-Fixed: 2053849
This commit is contained in:
Abhijit Pradhan
2017-06-29 12:32:20 +05:30
committed by snandini
parent 883684e7e8
commit 01e3d84d64
2 changed files with 13 additions and 0 deletions

View File

@@ -1349,6 +1349,8 @@ QDF_STATUS (*send_set_country_cmd)(wmi_unified_t wmi_handle,
uint32_t (*convert_pdev_id_host_to_target)(uint32_t pdev_id);
uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id);
QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle,
uint8_t pdev_id, struct cc_regdmn_s *rd);
};
struct target_abi_version {

View File

@@ -71,4 +71,15 @@ QDF_STATUS wmi_extract_reg_11d_new_cc_event(void *wmi_hdl,
uint8_t *evt_buf,
struct reg_11d_new_country *reg_11d_new_cc,
uint32_t len);
/**
* wmi_unified_set_user_country_code_cmd_send() - WMI set country function
* @wmi_handle: wmi handle.
* @pdev_id: Pdev id
* @rd: User country code or regdomain
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_set_user_country_code_cmd_send(void *wmi_hdl,
uint8_t pdev_id, struct cc_regdmn_s *rd);
#endif /* _WMI_UNIFIED_REG_API_H_ */