1. 26 10月, 2015 2 次提交
  2. 21 10月, 2015 3 次提交
  3. 08 10月, 2015 2 次提交
  4. 05 10月, 2015 2 次提交
  5. 17 9月, 2015 1 次提交
  6. 08 6月, 2015 1 次提交
    • M
      Bluetooth: Fix race condition with user channel and setup stage · 781f899f
      Marcel Holtmann 提交于
      During the initial setup stage of a controller, the low-level transport
      is actually active. This means that HCI_UP is true. To avoid toggling
      the transport off and back on again for normal operation the kernel
      holds a grace period with HCI_AUTO_OFF that will turn the low-level
      transport off in case no user is present.
      
      The idea of the grace period is important to avoid having to initialize
      all of the controller twice. So legacy ioctl and the new management
      interface knows how to clear this grace period and then start normal
      operation.
      
      For the user channel operation this grace period has not been taken into
      account which results in the problem that HCI_UP and HCI_AUTO_OFF are
      set and the kernel will return EBUSY. However from a system point of
      view the controller is ready to be grabbed by either the ioctl, the
      management interface or the user channel.
      
      This patch brings the user channel to the same level as the other two
      entries for operating a controller.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Cc: stable@vger.kernel.org
      781f899f
  7. 07 6月, 2015 1 次提交
  8. 11 5月, 2015 1 次提交
  9. 31 3月, 2015 1 次提交
  10. 18 3月, 2015 2 次提交
  11. 15 3月, 2015 8 次提交
  12. 13 3月, 2015 3 次提交
  13. 07 3月, 2015 2 次提交
  14. 03 3月, 2015 1 次提交
  15. 02 3月, 2015 2 次提交
  16. 28 2月, 2015 1 次提交
    • J
      Bluetooth: make hci_test_bit's addr const · 9391976a
      Jiri Slaby 提交于
      gcc5 warns about passing a const array to hci_test_bit which takes a
      non-const pointer:
      net/bluetooth/hci_sock.c: In function ‘hci_sock_sendmsg’:
      net/bluetooth/hci_sock.c:955:8: warning: passing argument 2 of ‘hci_test_bit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
              &hci_sec_filter.ocf_mask[ogf])) &&
              ^
      net/bluetooth/hci_sock.c:49:19: note: expected ‘void *’ but argument is of type ‘const __u32 (*)[4] {aka const unsigned int (*)[4]}’
       static inline int hci_test_bit(int nr, void *addr)
                         ^
      
      So make 'addr' 'const void *'.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Cc: Gustavo Padovan <gustavo@padovan.org>
      Cc: Johan Hedberg <johan.hedberg@gmail.com>
      9391976a
  17. 21 2月, 2015 2 次提交
  18. 12 1月, 2015 4 次提交
  19. 24 11月, 2014 1 次提交