Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: host: Fix ATT error code on GATT authentication procedure
“Insufficient Encryption” shall be returned only if link is not encrypted and proper LTK is present, otherwise “Insufficient Authentication” shall be used. Core Specification 5.4 Vol. 3 Part C 10.3.1 "If neither an LTK nor an STK is available, the service request shall be rejected with the error code “Insufficient Authentication”. Note: When the link is not encrypted, the error code “Insufficient Authentication” does not indicate that MITM protection is required. If an LTK or an STK is available and encryption is required (LE security mode 1) but encryption is not enabled, the service request shall be rejected with the error code “Insufficient Encryption”." This was affecting GAP/SEC/AUT/BV-11-C qualification test case. Signed-off-by: Szymon Janc <[email protected]>
- Loading branch information