1. 13 2月, 2014 1 次提交
    • J
      Bluetooth: Fix outgoing authentication requirement check · 264b8b4e
      Johan Hedberg 提交于
      The check for HIGH security level dates back to pre-mgmt times when a
      raw L2CAP socket with HIGH security level was used to trigger dedicated
      bonding. For legacy pairing checking for the security level was the only
      way to catch the need to authenticate in all scenarios. With mgmt
      however, the pair_device command does not use HIGH security but MEDIUM
      security. Therefore, the existing code would never trigger
      authentication for a non-SSP connection without an MITM requirement
      (e.g. if user space provided a NoInputNoOutput IO capability). In such a
      scenario the mgmt_pair_device command would return success without
      actually triggering any kind of pairing.
      
      This patch updates the authentication requirement check to also consider
      MEDIUM security level, and thereby ensures that mgmt_pair_device will
      always trigger authentication.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      264b8b4e
  2. 12 12月, 2013 1 次提交
  3. 04 12月, 2013 5 次提交
  4. 19 10月, 2013 4 次提交
  5. 18 10月, 2013 1 次提交
  6. 17 10月, 2013 1 次提交
  7. 16 10月, 2013 2 次提交
  8. 15 10月, 2013 3 次提交
  9. 14 10月, 2013 1 次提交
  10. 13 10月, 2013 1 次提交
  11. 11 10月, 2013 2 次提交
  12. 10 10月, 2013 1 次提交
  13. 08 10月, 2013 1 次提交
  14. 06 10月, 2013 1 次提交
  15. 05 10月, 2013 2 次提交
  16. 02 10月, 2013 1 次提交
    • J
      Bluetooth: Add a new mgmt_set_bredr command · 0663ca2a
      Johan Hedberg 提交于
      This patch introduces a new mgmt command for enabling/disabling BR/EDR
      functionality. This can be convenient when one wants to make a dual-mode
      controller behave like a single-mode one. The command is only available
      for dual-mode controllers and requires that LE is enabled before using
      it. The BR/EDR setting can be enabled at any point, however disabling it
      requires the controller to be powered off (otherwise a "rejected"
      response will be sent).
      
      Disabling the BR/EDR setting will automatically disable all other BR/EDR
      related settings.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      0663ca2a
  17. 26 9月, 2013 2 次提交
  18. 17 9月, 2013 2 次提交
  19. 21 8月, 2013 2 次提交
    • F
      Bluetooth: Add SCO connection fallback · 2dea632f
      Frédéric Dalleau 提交于
      When initiating a transparent eSCO connection, make use of T2 settings
      at first try. T2 is the recommended settings from HFP 1.6 WideBand
      Speech. Upon connection failure, try T1 settings.
      
      When CVSD is requested and eSCO is supported, try to establish eSCO
      connection using S3 settings. If it fails, fallback in sequence to S2,
      S1, D1, D0 settings.
      
      To know which setting should be used, conn->attempt is used. It
      indicates the currently ongoing SCO connection attempt and can be used
      as the index for the fallback settings table.
      
      These setting and the fallback order are described in Bluetooth HFP 1.6
      specification p. 101.
      Signed-off-by: NFrédéric Dalleau <frederic.dalleau@linux.intel.com>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      2dea632f
    • F
      Bluetooth: Handle specific error for SCO connection fallback · 1a4c958c
      Frédéric Dalleau 提交于
      Synchronous Connection Complete event can return error "Connection
      Rejected due to Limited resources (0x10)".
      Handling this error is required for SCO connection fallback. This error
      happens when the server tried to accept the connection but failed to
      negotiate settings.
      This error code has been verified experimentally by sending a T2 request
      to a T1 only SCO listener.
      
      Client dump follows :
      
      < HCI Command (0x01|0x0028) plen 17 [hci0] 3.696064
              Handle: 12
              Transmit bandwidth: 8000
              Receive bandwidth: 8000
              Max latency: 13
              Setting: 0x0003
              Retransmission effort: Optimize for link quality (0x02)
              Packet type: 0x0380
      > HCI Event (0x0f) plen 4 [hci0] 3.697034
            Setup Synchronous Connection (0x01|0x0028) ncmd 1
              Status: Success (0x00)
      > HCI Event (0x2c) plen 17 [hci0] 3.736059
              Status: Connection Rejected due to Limited Resources (0x0d)
              Handle: 0
              Address: xx:xx:xx:xx:xx:AB (OUI 70-F3-95)
              Link type: eSCO (0x02)
              Transmission interval: 0x0c
              Retransmission window: 0x06
              RX packet length: 60
              TX packet length: 60
              Air mode: Transparent (0x03)
      
      Server dump follows :
      
      > HCI Event (0x04) plen 10 [hci0] 4.741513
              Address: xx:xx:xx:xx:xx:D9 (OUI 20-68-9D)
              Class: 0x620100
                Major class: Computer (desktop, notebook, PDA, organizers)
                Minor class: Uncategorized, code for device not assigned
                Networking (LAN, Ad hoc)
                Audio (Speaker, Microphone, Headset)
                Telephony (Cordless telephony, Modem, Headset)
              Link type: eSCO (0x02)
      < HCI Command (0x01|0x0029) plen 21 [hci0] 4.743269
              Address: xx:xx:xx:xx:xx:D9 (OUI 20-68-9D)
              Transmit bandwidth: 8000
              Receive bandwidth: 8000
              Max latency: 13
              Setting: 0x0003
              Retransmission effort: Optimize for link quality (0x02)
              Packet type: 0x03c1
      > HCI Event (0x0f) plen 4 [hci0] 4.745517
            Accept Synchronous Connection (0x01|0x0029) ncmd 1
              Status: Success (0x00)
      > HCI Event (0x2c) plen 17 [hci0] 4.749508
              Status: Connection Rejected due to Limited Resources (0x0d)
              Handle: 0
              Address: xx:xx:xx:xx:xx:D9 (OUI 20-68-9D)
              Link type: eSCO (0x02)
              Transmission interval: 0x0c
              Retransmission window: 0x06
              RX packet length: 60
              TX packet length: 60
              Air mode: Transparent (0x03)
      Signed-off-by: NFrédéric Dalleau <frederic.dalleau@linux.intel.com>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      1a4c958c
  20. 25 7月, 2013 2 次提交
  21. 23 6月, 2013 4 次提交