-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluetooth: mesh: Remove illegal use of NET_BUF_FRAG in friend.c
This commit removes illegal use of NET_BUF_FRAG in friend.c, which is an internal flag. Now `struct bt_mesh_friend_seg` keeps pointer to a first received segment of a segmented message. The rest segments are added as fragments using net_buf API. Friend Queue keeps only head of the fragments. When one segment (currently head of fragments) is removed from Friend Queue, the next segment is added to the queue. Head has always 2 references: one when allocated, another one when added as fragments head. Signed-off-by: Pavel Vasilyev <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters