diff --git a/src/attrib-server.c b/src/attrib-server.c
index 74a1c8d..9543da6 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
{
/* FIXME: currently, it is assumed an encrypted link is enough for
* authentication. This will allow to enable the SMP negotiation once
- * it is on upstream kernel. */
+ * it is on upstream kernel. High security level should be mapped
+ * to authentication and medium to encryption permission. */
if (!channel->encrypted)
channel->encrypted = g_attrib_is_encrypted(channel->attrib);
if (reqs == ATT_AUTHENTICATION && !channel->encrypted)
- return ATT_ECODE_INSUFF_ENC;
+ return ATT_ECODE_INSUFF_AUTHEN;
switch (opcode) {
case ATT_OP_READ_BY_GROUP_REQ: