1. 05 Nov, 2013 3 commits
  2. 04 Nov, 2013 1 commit
  3. 28 Oct, 2013 22 commits
  4. 21 Oct, 2013 12 commits
  5. 20 Oct, 2013 2 commits
    • Johan Hedberg's avatar
      Bluetooth: Update Set Discoverable to support LE · 9a43e25f
      Johan Hedberg authored
      This patch updates the Set Discoverable management command to also be
      applicable for LE. In particular this affects the advertising flags
      where we can say "general discoverable" or "limited discoverable".
      
      Since the device flags may not be up-to-date when the advertising data
      is written this patch introduces a get_adv_discov_flags() helper
      function which also looks at any pending mgmt commands (a pending
      set_discoverable would be the exception when the flags are not yet
      correct).
      
      The patch also adds HCI_DISCOVERABLE flag clearing to the
      mgmt_discoverable_timeout function, since the code was previously
      relying on the mgmt_discoverable callback to handle this, which is only
      called for the BR/EDR-only HCI_Write_Scan_Enable command.
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      9a43e25f
    • Johan Hedberg's avatar
      Bluetooth: Move HCI_LIMITED_DISCOVERABLE changes to a general place · b456f87c
      Johan Hedberg authored
      We'll soon be introducing also LE support for the Set Discoverable
      management command, so move the HCI_LIMITED_DISCOVERABLE flag clearing
      and setting out from the if-branch that is only used for a BR/EDR
      specific HCI command.
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      b456f87c