diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/wifi/generic/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c index ee122ea2d8..869b92aea6 100644 --- a/src/drivers/wifi/generic/acpi.c +++ b/src/drivers/wifi/generic/acpi.c @@ -488,7 +488,7 @@ static void emit_sar_acpi_structures(const struct device *dev, struct dsm_profil /* copy the dsm data to be later used for creating _DSM function */ if (sar_limits.dsm != NULL) - memcpy(dsm, &sar_limits.dsm, sizeof(struct dsm_profile)); + memcpy(dsm, sar_limits.dsm, sizeof(struct dsm_profile)); free(sar_limits.sar); } @@ -571,7 +571,7 @@ static void wifi_ssdt_write_properties(const struct device *dev, const char *sco dsm_ids[dsm_count].uuid = ACPI_DSM_OEM_WIFI_UUID; dsm_ids[dsm_count].callbacks = &wifi_dsm_callbacks[0]; dsm_ids[dsm_count].count = ARRAY_SIZE(wifi_dsm_callbacks); - dsm_ids[dsm_count].arg = NULL; + dsm_ids[dsm_count].arg = &dsm; dsm_count++; } } |