• Johan Hedberg's avatar
    Bluetooth: Move L2CAP fixed channel creation into l2cap_conn_cfm · e760ec12
    Johan Hedberg authored
    In order to remove special handling of fixed L2CAP channels we need to
    start creating them in a single place instead of having per-channel
    exceptions. The most natural place is the l2cap_conn_cfm() function
    which is called whenever there is a new baseband link.
    
    The only really special case so far has been the ATT socket, so in order
    not to break the code in between this patch removes the ATT special
    handling at the same time as it adds the generic fixed channel handling
    from l2cap_le_conn_ready() into the hci_conn_cfm() function. As a
    related change the channel locking in l2cap_conn_ready() becomes simpler
    and we can thereby move the smp_conn_security() call into the
    l2cap_le_conn_ready() function.
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    e760ec12
l2cap_core.c 177 KB