1. 20 5月, 2014 4 次提交
  2. 08 5月, 2014 1 次提交
  3. 24 3月, 2014 7 次提交
  4. 21 3月, 2014 1 次提交
    • J
      Bluetooth: Fix address value for early disconnection events · 61b1a7fb
      Johan Hedberg 提交于
      We need to ensure that we do not send events to user space with the
      identity address if we have not yet notified user space of the IRK. The
      code was previously trying to handle this for the mgmt_pair_device
      response (which worked well enough) but this is not the only connection
      related event that might be sent to user space before pairing is
      successful: another important event is Device Disconnected.
      
      The issue can actually be solved more simply than the solution
      previously used for mgmt_pair_device. Since we do have the identity
      address tracked as part of the remote IRK struct we can just copy it
      over from there to the hci_conn struct once we've for real sent the mgmt
      event for the new IRK.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      61b1a7fb
  5. 20 3月, 2014 3 次提交
  6. 19 3月, 2014 3 次提交
  7. 15 3月, 2014 1 次提交
  8. 13 3月, 2014 1 次提交
  9. 10 3月, 2014 2 次提交
  10. 01 3月, 2014 2 次提交
  11. 28 2月, 2014 3 次提交
  12. 27 2月, 2014 3 次提交
  13. 26 2月, 2014 1 次提交
    • J
      Bluetooth: Ignore IRKs with no Identity Address · a9a58f86
      Johan Hedberg 提交于
      The Core Specification (4.1) leaves room for sending an SMP Identity
      Address Information PDU with an all-zeros BD_ADDR value. This
      essentially means that we would not have an Identity Address for the
      device and the only means of identifying it would be the IRK value
      itself.
      
      Due to lack of any known implementations behaving like this it's best to
      keep our implementation as simple as possible as far as handling such
      situations is concerned. This patch updates the Identity Address
      Information handler function to simply ignore the IRK received from such
      a device.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      a9a58f86
  14. 24 2月, 2014 2 次提交
  15. 23 2月, 2014 2 次提交
  16. 20 2月, 2014 3 次提交
  17. 19 2月, 2014 1 次提交
    • J
      Bluetooth: Wait for SMP key distribution completion when pairing · f4a407be
      Johan Hedberg 提交于
      When we initiate pairing through mgmt_pair_device the code has so far
      been waiting for a successful HCI Encrypt Change event in order to
      respond to the mgmt command. However, putting privacy into the play we
      actually want the key distribution to be complete before replying so
      that we can include the Identity Address in the mgmt response.
      
      This patch updates the various hci_conn callbacks for LE in mgmt.c to
      only respond in the case of failure, and adds a new mgmt_smp_complete
      function that the SMP code will call once key distribution has been
      completed.
      
      Since the smp_chan_destroy function that's used to indicate completion
      and clean up the SMP context can be called from various places,
      including outside of smp.c, the easiest way to track failure vs success
      is a new flag that we set once key distribution has been successfully
      completed.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      f4a407be