commit | cfd368fef1b72e9468626ee03ed1992ceb1e8965 | [log] [tgz] |
---|---|---|
author | Théo Battrel <theo.battrel@nordicsemi.no> | Tue Apr 18 12:27:16 2023 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Jun 08 04:10:58 2023 -0400 |
tree | 36a3f6c2e953844de902601bdbbe40c3e9d52425 | |
parent | 24ea25827c7b2ea7d7088417bbe575153296021c [diff] |
Bluetooth: Host: Fix GATT server handling of CCC GATT server was not doing enough check before udpating the CCC. For example, a non-bonded client could update the CCC of a bonded client by spoofing his address. This fix the issue by dissociating the CCC configuration of a bonded and a non-bonded peer. To do that, a new field is added to the CCC config: `link_encrypted`. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>