Bluetooth: SMP: Refactor keys distribution bitfields
This is in preparation for adding Link Key distirbution bit which depends on BR/EDR support. Change-Id: I156dcae1c3488cc7fc5cc3514a048affa89f449b Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
bf098dff6d
commit
66f523bf2e
1 changed files with 5 additions and 4 deletions
|
@ -62,14 +62,15 @@
|
|||
#define SIGN_DIST 0
|
||||
#endif
|
||||
|
||||
#define RECV_KEYS (BT_SMP_DIST_ID_KEY | BT_SMP_DIST_ENC_KEY | SIGN_DIST)
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_PRIVACY)
|
||||
#define SEND_KEYS (BT_SMP_DIST_ENC_KEY | BT_SMP_DIST_ID_KEY | SIGN_DIST)
|
||||
#define ID_DIST BT_SMP_DIST_ID_KEY
|
||||
#else
|
||||
#define SEND_KEYS (BT_SMP_DIST_ENC_KEY | SIGN_DIST)
|
||||
#define ID_DIST 0
|
||||
#endif
|
||||
|
||||
#define RECV_KEYS (BT_SMP_DIST_ENC_KEY | BT_SMP_DIST_ID_KEY | SIGN_DIST)
|
||||
#define SEND_KEYS (BT_SMP_DIST_ENC_KEY | ID_DIST | SIGN_DIST)
|
||||
|
||||
#define RECV_KEYS_SC (RECV_KEYS & ~(BT_SMP_DIST_ENC_KEY | BT_SMP_DIST_LINK_KEY))
|
||||
#define SEND_KEYS_SC (SEND_KEYS & ~(BT_SMP_DIST_ENC_KEY | BT_SMP_DIST_LINK_KEY))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue