• Timo Mueller's avatar
    Bluetooth: Use MITM Protection when IO caps allow it · 7e74170a
    Timo Mueller authored
    When responding to a remotely-initiated pairing procedure, a MITM
    protected SSP associaton model can be used for pairing if both local
    and remote IO capabilities are set to something other than
    NoInputNoOutput, regardless of the bonding type (Dedicated or
    General).
    
    This was already done for Dedicated Bonding but this patch proposes to
    use the same policy for General Bonding as well.
    
    The GAP Specification gives the flexibility to decide whether MITM
    Protection is used ot not (Bluetooth Core Specification v4.0 Volume 3,
    part C, section 6.5.3).
    
    Note however that the recommendation is *not* to set this flag "unless
    the security policy of an available local service requires MITM
    Protection" (for both Dedicated and General Bonding). However, as we are
    already requiring MITM for Dedicated Bonding, we will follow this
    behaviour also for General Bonding.
    Signed-off-by: default avatarTimo Mueller <timo.mueller@bmw-carit.de>
    Signed-off-by: default avatarMikel Astiz <mikel.astiz@bmw-carit.de>
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    7e74170a
hci_event.c 104 KB