• Johan Hedberg's avatar
    Bluetooth: Fix valid Identity Address check · e12af489
    Johan Hedberg authored
    According to the Bluetooth core specification valid identity addresses
    are either Public Device Addresses or Static Random Addresses. IRKs
    received with any other type of address should be discarded since we
    cannot assume to know the permanent identity of the peer device.
    
    This patch fixes a missing check for the Identity Address when receiving
    the Identity Address Information SMP PDU.
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    Cc: stable@vger.kernel.org # 3.17+
    e12af489
smp.c 82.1 KB