1. 07 3月, 2015 6 次提交
  2. 05 3月, 2015 3 次提交
  3. 28 2月, 2015 1 次提交
  4. 21 2月, 2015 1 次提交
  5. 20 2月, 2015 2 次提交
  6. 14 2月, 2015 1 次提交
  7. 03 2月, 2015 1 次提交
  8. 02 2月, 2015 2 次提交
  9. 01 2月, 2015 1 次提交
  10. 29 1月, 2015 2 次提交
  11. 24 1月, 2015 3 次提交
  12. 23 1月, 2015 4 次提交
  13. 15 1月, 2015 2 次提交
  14. 12 1月, 2015 1 次提交
  15. 03 1月, 2015 1 次提交
  16. 20 12月, 2014 4 次提交
  17. 19 12月, 2014 2 次提交
  18. 18 12月, 2014 1 次提交
    • M
      Bluetooth: Fix bug with filter in service discovery optimization · ea8ae251
      Marcel Holtmann 提交于
      The optimization for filtering out extended inquiry results, advertising
      reports or scan response data based on provided UUID list has a logic
      bug. In case no match is found in the advertising data, the scan
      response is ignored and not checked against the filter. This will lead
      to events being filtered wrongly.
      
      Change the code to actually only drop the events when the scan response
      data is not present. If it is present, it needs to be checked against
      the provided filter.
      
      The patch is a bit more complex than it needs to be. That is because
      it also fixes this compiler warning that some gcc versions produce.
      
        CC      net/bluetooth/mgmt.o
      net/bluetooth/mgmt.c: In function ‘mgmt_device_found’:
      net/bluetooth/mgmt.c:7028:7: warning: ‘match’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        bool match;
             ^
      
      It seems that gcc can not clearly figure out the context of the match
      variable. So just change the branches for the extended inquiry response
      and advertising data around so that it is clear.
      Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      ea8ae251
  19. 12 12月, 2014 2 次提交
    • J
      Bluetooth: Fix mgmt response status when removing adapter · 9845904f
      Johan Hedberg 提交于
      When an adapter is removed (hci_unregister_dev) any pending mgmt
      commands for that adapter should get the appropriate INVALID_INDEX
      response. Since hci_unregister_dev() calls hci_dev_do_close() first
      that'd so far have caused "not powered" responses to be sent.
      
      Skipping the HCI_UNREGISTER case in mgmt_powered() is also not a
      solution since before reaching the mgmt_index_removed() stage any
      hci_conn callbacks (e.g. used by pairing) will get called, thereby
      causing "disconnected" status responses to be sent.
      
      The fix that covers all scenarios is to handle both INVALID_INDEX and
      NOT_POWERED responses through the mgmt_powered() function. The
      INVALID_INDEX response sending from mgmt_index_removed() is left
      untouched since there are a couple of places not related to powering off
      or removing an adapter that call it (e.g. configuring a new bdaddr).
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      9845904f
    • J
      Bluetooth: Fix enabling BR/EDR SC when powering on · ec6f99b8
      Johan Hedberg 提交于
      If we're in the AUTO_OFF stage the powered_update_hci() function is
      responsible for doing the updates to the HCI state that were not done
      during the actual mgmt command handlers. One of the updates needing done
      is for BR/EDR SC support. This patch adds the missing HCI command for SC
      support to the powered_update_hci() function.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      ec6f99b8