mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 13:14:14 +08:00
Fix SAP message padding macro
With this patch it is not possible to have incorrect padding equal to 4.
This commit is contained in:
parent
9edfc88f77
commit
d70388cda5
@ -49,7 +49,7 @@
|
||||
#define SAP_UUID "0000112D-0000-1000-8000-00805F9B34FB"
|
||||
#define SAP_SERVER_CHANNEL 8
|
||||
|
||||
#define PADDING4(x) (4 - (x & 0x03))
|
||||
#define PADDING4(x) ((4 - (x & 0x03)) & 0x03)
|
||||
#define PARAMETER_SIZE(x) (sizeof(struct sap_parameter) + x + PADDING4(x))
|
||||
|
||||
#define SAP_NO_REQ 0xFF
|
||||
|
Loading…
Reference in New Issue
Block a user