Diff between da0253959ec384d8c4ff7c970ce12fb8a95bd052 and 5c65356cae64ddbc95210deb36ee66430645edf8
Changed Files
| File | Additions | Deletions | Status |
| src/shared/att.c | +3 | -0 | modified |
Full Patch
diff --git a/src/shared/att.c b/src/shared/att.c
index 4a406f4..dabbdb4 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -727,6 +727,9 @@ static bool bt_att_chan_set_security(struct bt_att_chan *chan, int level)
{
struct bt_security sec;
+ if (level == bt_att_chan_get_security(chan))
+ return true;
+
if (chan->type == BT_ATT_LOCAL) {
chan->sec_level = level;
return true;