diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index d52bddf895..9209cdb1e2 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -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 { diff --git a/wmi_unified_reg_api.h b/wmi_unified_reg_api.h index 5ac9b91458..7bc50f471d 100644 --- a/wmi_unified_reg_api.h +++ b/wmi_unified_reg_api.h @@ -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_ */