Bluetooth: Do nothing if required no encryption
Until full security level tracking is added just ignore BT_CONN_SEC_LOW security level. Change-Id: I38ccf7dca261dc0a2a3d6e58b7398946d8f17771 Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
This commit is contained in:
parent
bd0642958b
commit
a6a0e54ec9
1 changed files with 5 additions and 0 deletions
|
@ -396,6 +396,11 @@ int bt_conn_security(struct bt_conn *conn, bt_conn_security_t sec)
|
|||
return -ENOTCONN;
|
||||
}
|
||||
|
||||
/* nothing to do */
|
||||
if (sec == BT_CONN_SEC_LOW) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* for now we only support JustWorks */
|
||||
if (sec > BT_CONN_SEC_MEDIUM) {
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue