Skip to content

Commit 0c0afed

Browse files
jhedbergGustavo Padovan
authored andcommitted
Bluetooth: Fix parameter order of hci_get_route
The actual parameter order of hci_get_route is (dst, src) and not (src, dst). All current callers use the right order but the header file shows the parameters in the wrong order. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
1 parent fffadc0 commit 0c0afed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/bluetooth/hci_core.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ static inline uint8_t __hci_num_ctrl(void)
685685
}
686686

687687
struct hci_dev *hci_dev_get(int index);
688-
struct hci_dev *hci_get_route(bdaddr_t *src, bdaddr_t *dst);
688+
struct hci_dev *hci_get_route(bdaddr_t *dst, bdaddr_t *src);
689689

690690
struct hci_dev *hci_alloc_dev(void);
691691
void hci_free_dev(struct hci_dev *hdev);

0 commit comments

Comments
 (0)