Skip to content

Bluetooth: Update to latest mgmt API

Johan Hedberg linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15Bluetooth: Fix clearing persistent flagsnet/bluetooth/hci_event.c+2 -21 reply
2/15Bluetooth: Rename mgmt connected events to match user spaceinclude/net/bluetooth/hci_core.h include/net/bluetooth/mgmt.h net/bluetooth/hci_event.c +1 more+15 -131 reply
3/15Bluetooth: Add eir_len parameter to mgmt_ev_device_foundinclude/net/bluetooth/hci_core.h include/net/bluetooth/mgmt.h net/bluetooth/mgmt.c+18 -151 reply
4/15Bluetooth: Rename eir_has_complete_name to eir_has_data_typenet/bluetooth/hci_event.c+5 -41 reply
5/15Bluetooth: Add missing EIR defines to hci.hinclude/net/bluetooth/hci.h+3 -01 reply
6/15Bluetooth: Move eir_has_data_field to hci_core.hinclude/net/bluetooth/hci_core.h net/bluetooth/hci_event.c+25 -251 reply
7/15Bluetooth: Merge device class into the EIR data in mgmt_ev_device_foundinclude/net/bluetooth/hci_core.h include/net/bluetooth/mgmt.h net/bluetooth/mgmt.c+24 -86 replies
8/15Bluetooth: Rename conn->pend to conn->flagsinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.c +2 more+41 -421 reply
9/15Bluetooth: Merge boolean members of struct hci_conn into flagsinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.c+25 -173 replies
10/15Bluetooth: Add a convenience function to check for SSP enabledinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.c+12 -123 replies
11/15Bluetooth: Convert hdev->ssp_mode to a flaginclude/net/bluetooth/hci.h include/net/bluetooth/hci_core.h net/bluetooth/hci_event.c +1 more+12 -61 reply
12/15Bluetooth: Convert hdev->out to a bool typeinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_event.c+7 -71 reply
13/15Bluetooth: Update device_connected and device_found events to latest APIinclude/net/bluetooth/hci_core.h include/net/bluetooth/mgmt.h net/bluetooth/hci_event.c +1 more+110 -481 reply
14/15Bluetooth: Rename hdev->flags to hdev->compat_flagsdrivers/bluetooth/bfusb.c drivers/bluetooth/bpa10x.c drivers/bluetooth/btmrvl_main.c +10 more+121 -1201 reply
15/15Bluetooth: Rename hdev->dev_flags to hdev-flagsinclude/net/bluetooth/hci.h include/net/bluetooth/hci_core.h net/bluetooth/hci_core.c +3 more+77 -760 replies

Reviews trailers per patch

10 of 15 patches have a Reviewed-by or Acked-by.

PatchMarcel Holtmann
1/15A-b
2/15A-b
3/15A-b
4/15A-b
5/15A-b
6/15A-b
7/15A-b
8/15A-b
9/15
10/15
11/15
12/15A-b
13/15A-b
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/15] Bluetooth: Update to latest mgmt API

Hi,

These patches update the device_found and device_connected mgmt events to correspond to the latest API. The patches should work with latest user space git. There are also some bugfixes like the persistent flags one and some cosmetic changes like the flags variable renames. Also, sorry about the slightly big patch 13/15. I tried to look into splitting it but didn't find any simple way.

Johan Hedberg (15):
Bluetooth: Fix clearing persistent flags
Bluetooth: Rename mgmt connected events to match user space
Bluetooth: Add eir_len parameter to mgmt_ev_device_found
Bluetooth: Rename eir_has_complete_name to eir_has_data_type
Bluetooth: Add missing EIR defines to hci.h
Bluetooth: Move eir_has_data_field to hci_core.h
Bluetooth: Merge device class into the EIR data in mgmt_ev_device_found
Bluetooth: Rename conn->pend to conn->flags
Bluetooth: Merge boolean members of struct hci_conn into flags
Bluetooth: Add a convenience function to check for SSP enabled
Bluetooth: Convert hdev->ssp_mode to a flag
Bluetooth: Convert hdev->out to a bool type
Bluetooth: Update device_connected and device_found events to latest API
Bluetooth: Rename hdev->flags to hdev->compat_flags
Bluetooth: Rename hdev->dev_flags to hdev-flags

 drivers/bluetooth/bfusb.c        |   12 +-
 drivers/bluetooth/bpa10x.c       |   12 +-
 drivers/bluetooth/btmrvl_main.c  |    9 +-
 drivers/bluetooth/btusb.c        |   20 ++--
 drivers/bluetooth/hci_ldisc.c    |    6 +-
 drivers/bluetooth/hci_vhci.c     |    6 +-
 include/net/bluetooth/hci.h      |   29 ++--
 include/net/bluetooth/hci_core.h |   77 +++++++++---
 include/net/bluetooth/mgmt.h     |   25 ++--
 net/bluetooth/hci_conn.c         |   50 ++++----
 net/bluetooth/hci_core.c         |  101 ++++++++-------
 net/bluetooth/hci_event.c        |  264 ++++++++++++++++++++------------------
 net/bluetooth/hci_sock.c         |    8 +-
 net/bluetooth/l2cap_core.c       |    2 +-
 net/bluetooth/mgmt.c             |  166 +++++++++++++++----------
 net/bluetooth/smp.c              |   21 ++--
 16 files changed, 455 insertions(+), 353 deletions(-)