1. 10 12月, 2015 1 次提交
    • J
      Bluetooth: Run page scan updates through hdev->req_workqueue · 01b1cb87
      Johan Hedberg 提交于
      Since Add/Remove Device perform the page scan updates independently
      from the HCI command completion we've introduced a potential race when
      multiple mgmt commands are queued. Doing the page scan updates through
      the req_workqueue ensures that the state changes are performed in a
      race-free manner.
      
      At the same time, to make the request helper more widely usable,
      extend it to also cover Inquiry Scan changes since those are behind
      the same HCI command. This is also reflected in the new name of the
      API as well as the work struct name.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      01b1cb87
  2. 20 11月, 2015 8 次提交
  3. 22 10月, 2015 1 次提交
  4. 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
  5. 20 12月, 2014 1 次提交
  6. 19 12月, 2014 1 次提交