OSDN Git Service

Bluetooth: btintel: Set Per Platform Antenna Gain(PPAG)
authorSeema Sreemantha <seema.sreemantha@intel.com>
Mon, 6 Feb 2023 06:51:44 +0000 (12:21 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 9 Feb 2023 22:20:04 +0000 (14:20 -0800)
commitc585a92b2f9c624b0b62b2af1eb0ea6d11cb5cac
treebe7ffc13a1f7abe4f1c8e78656aba200723d9d71
parent5cd39700de9b699ef2f333ba3c405e51afbf0eb0
Bluetooth: btintel: Set Per Platform Antenna Gain(PPAG)

Antenna gain is defined as the antenna’s ability to
increase the Tx power in a given direction. Intel
is certifying its products with fixed reference
antenna peak gain values (3/5dBi). The feature takes
into account the actual antenna gain, and increases
output power values, which results in a performance
improvement.

After firmware download is completed, driver reads from
ACPI table and configures PPAG as required. ACPI table
entry for PPAG is defined as below.

Name (PPAG, Package (0x02)
{
    0x00000001,
    Package (0x02)
    {
        0x00000012, /* Bluetooth Domain */
        0x00000001  /* 1 - Enable PPAG, 0 - Disable PPAG */
    }
})

btmon log:
< HCI Command: Intel Configure Per Platform Antenna Gain (0x3f|0x0219) plen 12
        Mcc: 0x00000000
        Selector: Enable
        Delta: 0x00000000
> HCI Event: Command Complete (0x0e) plen 4
      Intel Configure Per Platform Antenna Gain (0x3f|0x0219) ncmd 1
        Status: Success (0x00)

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Seema Sreemantha <seema.sreemantha@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel.c
drivers/bluetooth/btintel.h