tests/bluetooth/tester: Enable security validation for GATT subsciption
This was affecting following qualification test cases: GAP/SEC/SEM/BV-56-C GAP/SEC/SEM/BV-57-C GAP/SEC/SEM/BV-58-C GAP/SEC/SEM/BV-59-C GAP/SEC/SEM/BV-60-C GAP/SEC/SEM/BV-61-C Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
parent
2f93808bcc
commit
e932564f3a
1 changed files with 3 additions and 0 deletions
|
@ -1791,6 +1791,9 @@ static int enable_subscription(struct bt_conn *conn, uint16_t ccc_handle,
|
||||||
subscription->value = value;
|
subscription->value = value;
|
||||||
subscription->notify = notify_func;
|
subscription->notify = notify_func;
|
||||||
|
|
||||||
|
/* require security level from time of subscription */
|
||||||
|
subscription->min_security = bt_conn_get_security(conn);
|
||||||
|
|
||||||
return bt_gatt_discover(conn, &discover_params);
|
return bt_gatt_discover(conn, &discover_params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue