19 Dec, 2011

7 commits


22 Nov, 2011

1 commit


17 Nov, 2011

4 commits

  • Signed-off-by: Brian Gix
    Acked-by: Marcel Holtmann
    Signed-off-by: Gustavo F. Padovan

    Brian Gix
     
  • The mgmt_start_discovery command contains the type of discovery that
    should be started so this should be passed to the start_discovery
    function. This patch doesn't yet add any action depending on the type of
    the requested discovery.

    Signed-off-by: Johan Hedberg
    Acked-by: Marcel Holtmann
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • The management protocol uses a single byte for error codes (aka command
    status). In some places this value is directly copied from HCI and in
    other a POSIX error number is used. This makes it impossible for
    user-space to uniquily decipher the meaning of an error.

    To solve this issue a new mgmt-specific set of error codes is added
    along with a conversion table for HCI status values.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • The kernel needs to know whether it should connect to a device over
    BR/EDR or over LE. This is particularly important in the future when
    dual-mode device may be connectable also over LE. It is also important
    if/when we decide to move the LE advertisement cache from the kernel
    into user-space. Adding the type to the mgmt command also ensures
    conformance with the latest mgmt API spec.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     

11 Nov, 2011

3 commits


08 Nov, 2011

3 commits


15 Oct, 2011

1 commit


21 Sep, 2011

3 commits

  • Add management interface events for blocking/unblocking a device.
    Sender of the block device command gets cmd complete and other
    mgmt sockets get the event. Event is also sent to mgmt sockets when
    blocking is done with ioctl, e.g when blocking a device with
    hciconfig. This makes it possible for bluetoothd to track status
    of blocked devices when a third party block or unblocks a device.

    Event sending is handled in mgmt_device_blocked function which gets
    called from hci_blacklist_add in hci_core.c. A pending command is
    added in mgmt_block_device, so that it can found when sending the
    event - the event is not sent to the socket from which the pending
    command came. Locks were moved out from hci_core.c to hci_sock.c
    and mgmt.c, because locking is needed also for mgmt_pending_add in
    mgmt.c.

    Signed-off-by: Antti Julku
    Signed-off-by: Gustavo F. Padovan

    Antti Julku
     
  • Add command to management interface for enabling/disabling the
    fast connectable mode.

    Signed-off-by: Antti Julku
    Signed-off-by: Gustavo F. Padovan

    Antti Julku
     
  • One piece of information that was lost when using the mgmt interface,
    was the type of the connection. Using HCI events we used to know
    the type of the connection based on the type of the event, e.g.
    HCI_LE_Connection_Complete for LE links.

    Signed-off-by: Vinicius Costa Gomes
    Signed-off-by: Gustavo F. Padovan

    Vinicius Costa Gomes
     

09 Jul, 2011

1 commit


17 Jun, 2011

1 commit


29 Apr, 2011

4 commits

  • Even for keys that shouldn't be stored some use cases require the
    knowledge of a new key having been created so that the conclusion of a
    successful pairing can be made. Therefore, always send the mgmt_new_key
    event but add a store_hint parameter to it to indicate to user space
    whether the key should be stored or not.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • User space shouldn't have any need for the old key type so remove it
    from the corresponding Management interface event.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • When accepting a pairing request which fulfills the SSP auto-accept
    criteria we need to push the request all the way to the user for
    confirmation. This patch adds a new hint to the user_confirm_request
    management event so user space can know when to show a numeric
    comparison dialog and when to show a simple yes/no confirmation dialog.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • Extend the mgmt_pin_code_request interface to require secure
    pin code (16 digit) for authentication.

    This is a kernel part of the secure pin code requirement notification
    to user space agent.

    Code styling fix by Johan Hedberg.

    Signed-off-by: Waldemar Rymarkiewicz
    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Waldemar Rymarkiewicz
     

28 Apr, 2011

2 commits

  • This patch adds a new event to the Management interface to track when
    local adapters are discovering remote devices. For now this only tracks
    BR/EDR discovery procedures.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Anderson Briglia
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • This patch adds start_discovery and stop_discovery commands to the
    management interface. Right now their implementation is fairly
    simplistic and the parameters are fixed to what user space has
    defaulted to so far.
    This is the very initial phase for discovery implementation into
    the kernel. Next steps include name resolution, LE scanning and
    bdaddr type handling.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Anderson Briglia
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     

05 Apr, 2011

2 commits

  • This patch adds a new remote_name event to the Management interface
    which is sent every time the name of a remote device is resolved (over
    BR/EDR).

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     
  • This patch adds a device_found event to the Management interface. For
    now the event only maps to BR/EDR inquiry result HCI events, but in the
    future the plan is to also use it for the LE device discovery process.

    Signed-off-by: Johan Hedberg
    Signed-off-by: Gustavo F. Padovan

    Johan Hedberg
     

01 Apr, 2011

4 commits


28 Feb, 2011

1 commit


22 Feb, 2011

3 commits