-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromlist] Bluetooth: Host: L2CAP: Add explicit MPS parameter to …
…reconfigure API Add explicit MPS parameter to `bt_l2cap_ecred_chan_reconfigure`. This is the only straightforward way to reconfigure MPS channels that use `seg_recv`, where the application is in control of the MPS. The implementation of `bt_l2cap_ecred_chan_reconfigure` before this patch essentially had an implicit MPS parameter equal to `MIN(mtu + BT_L2CAP_SDU_HDR_SIZE, BT_L2CAP_RX_MTU)`. This choice maximizes throughput within the constrains of the Host implementation. To upgrade without change, applications must simply use that expression as the new argument, the the benefit that the choice of MPS is now explicit. I am not aware of any real-world uses of `bt_l2cap_ecred_chan_reconfigure`. I believe we can impose the small inconvenience of a search-replace without going through a deprecation cycle. For non-`seg_recv` channels, an explicit MPS parameter is useful if the application wants to ensure a small MPS. This might be useful for minimizing the impact this channel has on other channels on the same connection. Upstream PR #: 80883 Signed-off-by: Lang Xie <lang.xie@nordicsemi.no>
- Loading branch information
Showing
5 changed files
with
30 additions
and
14 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
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
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