Bluetooth: New callback type for HCI requests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest7 patches 1 replyIn review
- v47 patches 0 repliesSuperseded
- v37 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 7 patches | 0 replies | Superseded | |
| v1 | 7 patches | 0 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | Bluetooth: Add clarifying comment to command status handlingnet/ | +6 | 0 replies | |
| 2/7 | Bluetooth: Add second hci_request callback option for full skbinclude/ net/ net/ +2 more | +84 | 0 replies | |
| 3/7 | Bluetooth: Convert hci_req_sync family of function to new request APIinclude/ net/ | +15 | 0 replies | |
| 4/7 | Bluetooth: Remove unneeded recv_event variableinclude/ net/ net/ | +0 | 0 replies | |
| 5/7 | Bluetooth: Remove unused hci_req_pending() functioninclude/ net/ | +0 | 0 replies | |
| 6/7 | Bluetooth: Move hci_get_cmd_complete() to hci_event.cnet/ net/ | +58 | 0 replies | |
| 7/7 | Bluetooth: Convert local OOB data reading to use HCI requestinclude/ net/ net/ | +65 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/7] Bluetooth: New callback type for HCI requests
Hi,
v5: rebased (and tested) against latest bluetooth-next.git
v4: rebased (and tested) against latest bluetooth-next.git
v3: Make skb callback consistent with hci_cmd_sync_ev() semantics
v2: rebased (and tested) against latest bluetooth-next.git
Original cover letter:
This patch set adds a new callback type for HCI requests which allows passing the resulting command completion skb to the callback for further parsing. The set also converts the first two users for this new API, namely the synchronous requests as well as reading local OOB data.
The tricky part with passing the skb was the fact that typically HCI request callbacks are done after all other hci_event.c processing, while the skb we want to pass to the callback should be in pristine form (i.e. no skb_pull() or other modifications that hci_event.c handlers may do). To solve this the patches create a prestine copy of the skb with skb_clone() in the beginning of hci_event_packet() and move the callback access to a single place at the end of this function.
Johan
----------------------------------------------------------------
Johan Hedberg (7):
Bluetooth: Add clarifying comment to command status handling
Bluetooth: Add second hci_request callback option for full skb
Bluetooth: Convert hci_req_sync family of function to new request API
Bluetooth: Remove unneeded recv_event variable
Bluetooth: Remove unused hci_req_pending() function
Bluetooth: Move hci_get_cmd_complete() to hci_event.c
Bluetooth: Convert local OOB data reading to use HCI request
include/net/bluetooth/bluetooth.h | 3 + include/net/bluetooth/hci_core.h | 7 +- net/bluetooth/hci_core.c | 114 +++++++-------------------- net/bluetooth/hci_event.c | 150 +++++++++++++++++++++++++----------- net/bluetooth/hci_request.c | 14 +++- net/bluetooth/hci_request.h | 5 +- net/bluetooth/mgmt.c | 105 +++++++++++++++---------- 7 files changed, 220 insertions(+), 178 deletions(-)