14 Jun, 2011

7 commits


10 Jun, 2011

1 commit


09 Jun, 2011

13 commits

  • Add BT_POWER socket option used to control the power
    characteristics of the underlying ACL link. When the remote end
    has put the link in sniff mode and the host stack wants to send
    data we need need to explicitly exit sniff mode to work well with
    certain devices (For example, A2DP on Plantronics Voyager 855).
    However, this causes problems with HID devices.

    Hence, moving into active mode when sending data, irrespective
    of who set the sniff mode has been made as a socket option. By
    default, we will move into active mode. HID devices can set the
    L2CAP socket option to prevent this from happening.

    Currently, this has been implemented for L2CAP sockets. This has been
    tested with incoming and outgoing L2CAP sockets for HID and A2DP.

    Based on discussions on linux-bluetooth and patches submitted by
    Andrei Emeltchenko.

    Signed-off-by: Jaikumar Ganesh
    Signed-off-by: Gustavo F. Padovan

    Jaikumar Ganesh
     
  • This patch adds a new field (dst_type) to the struct hci_conn which
    holds the type of the destination address (bdaddr_t dst). This
    approach is needed in order to use the struct hci_conn as an
    abstraction of LE connections in HCI Layer. For non-LE this field
    is ignored.

    This patch also set properly the 'dst_type' field after initializing
    LE hci_conn structures.

    Signed-off-by: Andre Guedes
    Signed-off-by: Gustavo F. Padovan

    Andre Guedes
     
  • Legacy devices don't re-authenticate the link properly if a link key
    already exists. Thus, don't update sec_level for this case even if
    hci_auth_complete_evt indicates success. Otherwise the sec_level will
    not reflect a real security on the link.

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

    Waldemar Rymarkiewicz
     
  • This patch adds a timer to clear 'adv_entries' after three minutes.

    After some amount of time, the advertising entries cached during
    the last LE scan should be considered expired and they should be
    removed from the advertising cache.

    It was chosen a three minutes timeout as an initial attempt. This
    value might change in future.

    Signed-off-by: Andre Guedes
    Signed-off-by: Gustavo F. Padovan

    Andre Guedes
     
  • The LE advertising cache should be cleared before performing a LE
    scanning. This will force the cache to contain only fresh advertising
    entries.

    Signed-off-by: Andre Guedes
    Signed-off-by: Gustavo F. Padovan

    Andre Guedes
     
  • This patch implements the LE advertising cache. It stores sensitive
    information (bdaddr and bdaddr_type so far) gathered from LE
    advertising report events.

    Only advertising entries from connectables devices are added to the
    cache.

    Signed-off-by: Andre Guedes
    Signed-off-by: Gustavo F. Padovan

    Andre Guedes
     
  • This patch adds definitions and a new struct for Advertising Report
    Event from LE and Dual Mode controllers.

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

    Anderson Briglia
     
  • To make it consistent with the rest of the API.

    Signed-off-by: Gustavo F. Padovan

    Gustavo F. Padovan
     
  • The call to l2cap_chan_clear_timer() is not really needed in l2cap_sock.c.
    This patch also adds a call to l2cap_chan_clear_timer() to the only place
    in __l2cap_sock_close() that wasn't calling it. It's safe call it there
    because l2cap_chan_clear_timer() check first for timer_peding().

    Signed-off-by: Gustavo F. Padovan

    Gustavo F. Padovan
     
  • The new timer does not belong to struct sock, tought it still touch some
    sock things, but this will be sorted out soon.

    Signed-off-by: Gustavo F. Padovan

    Gustavo F. Padovan
     
  • chan_type says if our chan is raw(direclty access to HCI),
    connection less or connection oriented.

    Signed-off-by: Gustavo F. Padovan

    Gustavo F. Padovan
     
  • This move all the sending logic to l2cap_core.c, but we still have a
    socket dependence there, struct msghdr. It will be removed in some of the
    further commits.

    Signed-off-by: Gustavo F. Padovan

    Gustavo F. Padovan
     
  • This is actually __l2cap_sock_close() renamed to __l2cap_chan_close().
    At a first look it may not make sense, but with the further cleanups that
    will come it will.

    Signed-off-by: Gustavo F. Padovan

    Gustavo F. Padovan
     

08 Jun, 2011

2 commits


04 Jun, 2011

3 commits

  • In case of BCMA cards SPROM is located in the ChipCommon core, it is
    not mapped as separated host window. So far we have met only SPROMs rev
    8.
    SPROM layout seems to be the same as for SSB buses, so we decided to
    share SPROM struct and some defines.
    For now we extract MAC address only, this can be improved of course.

    Signed-off-by: Rafał Miłecki
    Signed-off-by: John W. Linville

    Rafał Miłecki
     
  • The brcm80211 driver in the staging tree has a cordic function to
    determine cosine and sine for a given angle. Feedback received from
    John Linville suggested that these kind of functions should be made
    available to others as a library function in the kernel tree. The
    b43 driver also has a cordic angle calculation implemented.

    Cc: linux-kernel@vger.kernel.org
    Cc: linux-wireless@vger.kernel.org
    Cc: "John W. Linville"
    Cc: Greg Kroah-Hartman
    Cc: Dan Carpenter
    Cc: Randy Dunlap
    Cc: Larry Finger
    Reviewed-by: Roland Vossen
    Reviewed-by: Henry Ptasinski
    Reviewed-by: Franky (Zhenhui) Lin
    Signed-off-by: Arend van Spriel
    Signed-off-by: John W. Linville

    Arend van Spriel
     
  • The brcm80211 driver in staging tree uses a crc8 function. Based on
    feedback from John Linville to move this to lib directory, the linux
    source has been searched. Although there is currently only one other
    kernel driver using this algorithm (ie. drivers/ssb) we are providing
    this as a library function for others to use.

    Cc: linux-kernel@vger.kernel.org
    Cc: linux-wireless@vger.kernel.org
    Cc: Dan Carpenter
    Cc: George Spelvin
    Cc: Randy Dunlap
    Reviewed-by: Henry Ptasinski
    Reviewed-by: Roland Vossen
    Reviewed-by: "Franky (Zhenhui) Lin"
    Signed-off-by: Arend van Spriel
    Signed-off-by: John W. Linville

    Arend van Spriel
     

02 Jun, 2011

4 commits


28 May, 2011

4 commits


27 May, 2011

4 commits


26 May, 2011

2 commits