drivers/wifi: Support Bluetooth Dual Mac Mode
This feature provides ability to set the Bluetooth Dual Mac Mode
setting.
The implementation follows document 559910 Intel Connectivity
Platforms BIOS Guideline revision 9.2 specification.
BUG=b:346600091
TEST=BDMM method is added to the bluetooth companion device and
return the data supplied by the SAR binary blob
Change-Id: Iebe95815c944d045f4cf686abcd1874a8a45e240
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84946
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
6e941f99da
commit
386b5a9ddf
3 changed files with 53 additions and 1 deletions
|
|
@ -150,6 +150,14 @@ static size_t bucs_table_size(const struct bucs_profile *bucs)
|
|||
return sizeof(struct bucs_profile);
|
||||
}
|
||||
|
||||
static size_t bdmm_table_size(const struct bdmm_profile *bdmm)
|
||||
{
|
||||
if (bdmm == NULL)
|
||||
return 0;
|
||||
|
||||
return sizeof(struct bdmm_profile);
|
||||
}
|
||||
|
||||
static bool valid_legacy_length(size_t bin_len)
|
||||
{
|
||||
if (bin_len == LEGACY_SAR_WGDS_BIN_SIZE)
|
||||
|
|
@ -208,6 +216,7 @@ static int fill_wifi_sar_limits(union wifi_sar_limits *sar_limits, const uint8_t
|
|||
expected_sar_bin_size += bdcm_table_size(sar_limits->bdcm);
|
||||
expected_sar_bin_size += bbsm_table_size(sar_limits->bbsm);
|
||||
expected_sar_bin_size += bucs_table_size(sar_limits->bucs);
|
||||
expected_sar_bin_size += bdmm_table_size(sar_limits->bdmm);
|
||||
|
||||
if (sar_bin_size != expected_sar_bin_size) {
|
||||
printk(BIOS_ERR, "Invalid SAR size, expected: %zu, obtained: %zu\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue