Bluetooth: hci_uart: Provide initial manufacturer information
Provide an early indication about the manufacturer information so that it can be forwarded into monitor channel. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
committed by
Johan Hedberg
parent
9f7378a9d6
commit
aee61f7aa8
@ -587,6 +587,13 @@ static int hci_uart_register_dev(struct hci_uart *hu)
|
||||
hdev->bus = HCI_UART;
|
||||
hci_set_drvdata(hdev, hu);
|
||||
|
||||
/* Only when vendor specific setup callback is provided, consider
|
||||
* the manufacturer information valid. This avoids filling in the
|
||||
* value for Ericsson when nothing is specified.
|
||||
*/
|
||||
if (hu->proto->setup)
|
||||
hdev->manufacturer = hu->proto->manufacturer;
|
||||
|
||||
hdev->open = hci_uart_open;
|
||||
hdev->close = hci_uart_close;
|
||||
hdev->flush = hci_uart_flush;
|
||||
|
Reference in New Issue
Block a user