driver/wifi: Remove unused function wifi_emit_dsm

As part of this CL https://review.coreboot.org/c/coreboot/+/61020
this function was decoupled and support for new DSM was added.
This function is no longer used so remove it.

Signed-off-by: Varshit B Pandya <varshit.b.pandya@intel.com>
Change-Id: Iad9dca8e50bad87178dfcc1951276703721d5f60
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65850
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Meera Ravindranath <meera.ravindranath@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Varshit B Pandya 2022-07-15 08:00:04 +05:30 committed by Martin L Roth
parent c58f674411
commit d9bc689276
1 changed files with 0 additions and 23 deletions

View File

@ -41,14 +41,6 @@ __weak int get_wifi_sar_limits(union wifi_sar_limits *sar_limits)
return -1; return -1;
} }
/*
* Generate ACPI AML code for _DSM method.
* This function takes as input uuid for the device, set of callbacks and
* argument to pass into the callbacks. Callbacks should ensure that Local0 and
* Local1 are left untouched. Use of Local2-Local7 is permitted in callbacks.
*/
void wifi_emit_dsm(struct dsm_profile *dsm);
/* /*
* Function 1: Allow PC OEMs to set ETSI 5.8GHz SRD in Passive/Disabled ESTI SRD * Function 1: Allow PC OEMs to set ETSI 5.8GHz SRD in Passive/Disabled ESTI SRD
* Channels: 149, 153, 157, 161, 165 * Channels: 149, 153, 157, 161, 165
@ -180,21 +172,6 @@ static void (*wifi_dsm2_callbacks[])(void *) = {
wifi_dsm_ddrrfim_func3_cb, /* Function 3 */ wifi_dsm_ddrrfim_func3_cb, /* Function 3 */
}; };
void wifi_emit_dsm(struct dsm_profile *dsm)
{
int i;
size_t count = ARRAY_SIZE(wifi_dsm_callbacks);
if (dsm == NULL)
return;
for (i = 1; i < count; i++)
if (!(dsm->supported_functions & (1 << i)))
wifi_dsm_callbacks[i] = NULL;
acpigen_write_dsm(ACPI_DSM_OEM_WIFI_UUID, wifi_dsm_callbacks, count, dsm);
}
static const uint8_t *sar_fetch_set(const struct sar_profile *sar, size_t set_num) static const uint8_t *sar_fetch_set(const struct sar_profile *sar, size_t set_num)
{ {
const uint8_t *sar_table = &sar->sar_table[0]; const uint8_t *sar_table = &sar->sar_table[0];