sm: request signing key only when bonding and ENABLE_LE_SIGNED_WRITE (fix)

This commit is contained in:
Matthias Ringwald 2018-03-30 22:27:40 +02:00
parent bb09604f2e
commit dc3878e895

View File

@ -1152,7 +1152,7 @@ static int sm_key_distribution_flags_for_auth_req(void){
// encryption and signing information only if bonding requested
flags |= SM_KEYDIST_ENC_KEY;
#ifdef ENABLE_LE_SIGNED_WRITE
flags | = SM_KEYDIST_SIGN;
flags |= SM_KEYDIST_SIGN;
#endif
}
return flags;