03 Jan, 2012

2 commits


23 Dec, 2011

1 commit


20 Dec, 2011

1 commit


19 Dec, 2011

9 commits


07 Dec, 2011

1 commit


01 Dec, 2011

1 commit


23 Nov, 2011

1 commit


22 Nov, 2011

2 commits

  • Low Energy (LE) pairing responses must be recognized and handled
    differently from BR/EDR pairing responses. BR/EDR responses are
    handled via HCI commands by the LMP layer, and LE responses are
    handled by the Host.

    Signed-off-by: Brian Gix
    Signed-off-by: Gustavo F. Padovan

    Brian Gix
     
  • There are 4 possible User Responses to pairing requests,
    and they all share the same checks and handling. This
    restructures the handling of the two Confirm responses
    in preperation for the second two.

    Signed-off-by: Brian Gix
    Signed-off-by: Gustavo F. Padovan

    Brian Gix
     

17 Nov, 2011

8 commits

  • 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 command complete event was completely missing for this command.

    Signed-off-by: Johan Hedberg
    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
     
  • When the adapter state is already what is requested it's more friendly
    to user-space to simply report success than to send a EALREADY error
    message.

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

    Johan Hedberg
     
  • When possible cmd_complete should be returned instead of cmd_status
    since it contains the remote address (this helps user-space track what
    exactly failed).

    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
     
  • This patches creates mgmt_stop_discovery_failed() which removes
    pending MGMT_OP_STOP_DISCOVERY commands and sends proper command
    status events.

    This patch also fixes the MGMT_OP_STOP_DISCOVERY command leak in
    case cancel inquiry fails.

    Signed-off-by: Andre Guedes
    Acked-by: Marcel Holtmann
    Signed-off-by: Gustavo F. Padovan

    Andre Guedes
     
  • This patch renames the function mgmt_inquiry_failed() to
    mgmt_start_discovery_failed(). This function is more related
    to MGMT_OP_START_DISCOVERY command handling than to inquiry.
    Besides, this functions will be reused by LE based discovery
    procedures in case of failure.

    Signed-off-by: Andre Guedes
    Acked-by: Marcel Holtmann
    Signed-off-by: Gustavo F. Padovan

    Andre Guedes
     

11 Nov, 2011

4 commits


09 Nov, 2011

6 commits


08 Nov, 2011

4 commits