Bluetooth: Provide flags parameter direct to mgmt_device_found
Providing the flags parameter directly to mgmt_device_found function makes the core simpler and more readable. With this it becomes a lot easier to add new flags in the future. This also changes hci_inquiry_cache_update to just return that flags needed for mgmt_device_found since that is its only use for the two return parameters anyway. Signed-off-by:Marcel Holtmann <marcel@holtmann.org> Signed-off-by:
Johan Hedberg <johan.hedberg@intel.com>
Showing
- include/net/bluetooth/hci_core.h 4 additions, 5 deletionsinclude/net/bluetooth/hci_core.h
- include/net/bluetooth/mgmt.h 1 addition, 0 deletionsinclude/net/bluetooth/mgmt.h
- net/bluetooth/hci_core.c 15 additions, 9 deletionsnet/bluetooth/hci_core.c
- net/bluetooth/hci_event.c 27 additions, 21 deletionsnet/bluetooth/hci_event.c
- net/bluetooth/mgmt.c 3 additions, 7 deletionsnet/bluetooth/mgmt.c
Loading
Please register or sign in to comment