1. 29 1月, 2016 1 次提交
    • J
      Bluetooth: Fix incorrect removing of IRKs · cff10ce7
      Johan Hedberg 提交于
      The commit cad20c27 was supposed to
      fix handling of devices first using public addresses and then
      switching to RPAs after pairing. Unfortunately it missed a couple of
      key places in the code.
      
      1. When evaluating which devices should be removed from the existing
      white list we also need to consider whether we have an IRK for them or
      not, i.e. a call to hci_find_irk_by_addr() is needed.
      
      2. In smp_notify_keys() we should not be requiring the knowledge of
      the RPA, but should simply keep the IRK around if the other conditions
      require it.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Cc: stable@vger.kernel.org # 4.4+
      cff10ce7
  2. 06 1月, 2016 1 次提交
  3. 10 12月, 2015 16 次提交
  4. 23 11月, 2015 1 次提交
  5. 20 11月, 2015 17 次提交
  6. 26 10月, 2015 1 次提交
  7. 22 10月, 2015 1 次提交
  8. 11 8月, 2015 1 次提交
  9. 02 4月, 2015 1 次提交
    • J
      Bluetooth: Add second hci_request callback option for full skb · e6214487
      Johan Hedberg 提交于
      This patch adds a second possible callback for HCI requests where the
      callback will receive the full skb of the last successfully completed
      HCI command. This API is useful for cases where we want to use a request
      to read some data and the existing hci_event.c handlers do not store it
      e.g. in the hci_dev struct.
      
      The reason the patch is a bit bigger than just adding the new API is
      because the hci_req_cmd_complete() functions required some refactoring
      to enable it: now hci_req_cmd_complete() is simply used to request the
      callback pointers if any, and the actual calling of them happens from a
      single place at the end of hci_event_packet(). The reason for this is
      that we need to pass the original skb (without any skb_pull, etc
      modifications done to it) and it's simplest to keep track of it within
      the hci_event_packet() function.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      e6214487