Bluetooth: Query LE tx power on startup
Queries tx power via HCI_LE_Read_Transmit_Power command when the hci device is initialized, and stores resulting min/max LE power in hdev struct. If command isn't available (< BT5 support), min/max values both default to HCI_TX_POWER_INVALID. This patch is manually verified by ensuring BT5 devices correctly query and receive controller tx power range. Reviewed-by:Sonny Sasaka <sonnysasaka@chromium.org> Signed-off-by:
Daniel Winkler <danielwinkler@google.com> Signed-off-by:
Marcel Holtmann <marcel@holtmann.org> Signed-off-by:
Johan Hedberg <johan.hedberg@intel.com>
parent
9bf9f4b6
No related branches found
Tags 0.0.3
Showing
- include/net/bluetooth/hci.h 7 additions, 0 deletionsinclude/net/bluetooth/hci.h
- include/net/bluetooth/hci_core.h 2 additions, 0 deletionsinclude/net/bluetooth/hci_core.h
- net/bluetooth/hci_core.c 8 additions, 0 deletionsnet/bluetooth/hci_core.c
- net/bluetooth/hci_event.c 18 additions, 0 deletionsnet/bluetooth/hci_event.c
Loading
-
mentioned in merge request !360 (closed)
-
mentioned in commit 7b8a6d60
-
mentioned in commit d5eeefa3
Please register or sign in to comment