1. 14 8月, 2014 4 次提交
    • J
      Bluetooth: Convert SMP to use l2cap_chan infrastructure · 5d88cc73
      Johan Hedberg 提交于
      Now that we have all the necessary pieces in place we can fully convert
      SMP to use the L2CAP channel infrastructure. This patch adds the
      necessary callbacks and removes the now unneeded conn->smp_chan pointer.
      
      One notable behavioral change in this patch comes from the following
      code snippet:
      
      -       case L2CAP_CID_SMP:
      -               if (smp_sig_channel(conn, skb))
      -                       l2cap_conn_del(conn->hcon, EACCES);
      
      This piece of code was essentially forcing a disconnection if garbage
      SMP data was received. The l2cap_conn_del() function is private to
      l2cap_conn.c so we don't have access to it anymore when using the L2CAP
      channel callbacks. Therefore, the behavior of the new code is simply to
      return errors in the recv() callback (which is simply the old
      smp_sig_channel()), but no disconnection will occur.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      5d88cc73
    • J
      Bluetooth: Add SMP L2CAP channel skeleton · 70db83c4
      Johan Hedberg 提交于
      This patch creates the initial SMP L2CAP channels and a skeleton for
      their callbacks. There is one per-adapter channel created upon adapter
      registration, and then one channel per-connection created through the
      new_connection callback. The channels are registered with the reserved
      CID 0x1f for now in order to not conflict with existing SMP
      functionality. Once everything is in place the value can be changed to
      what it should be, i.e. L2CAP_CID_SMP.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      70db83c4
    • J
      Bluetooth: Add more L2CAP convenience callbacks · f193844c
      Johan Hedberg 提交于
      In preparation for converting SMP to use l2cap_chan it's useful to add a
      few more callback helpers so that smp.c won't need to define all of its
      own.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      f193844c
    • J
      Bluetooth: Resume BT_CONNECTED state after LE security elevation · d52deb17
      Johan Hedberg 提交于
      The LE ATT socket uses a special trick where it temporarily sets
      BT_CONFIG state for the duration of a security level elevation. In order
      to not require special hacks for going back to BT_CONNECTED state in the
      l2cap_core.c code the most reasonable place to resume the state is the
      resume callback. This patch adds a new flag to track the pending
      security level change and ensures that the state is set back to
      BT_CONNECTED in the resume callback in case the flag is set.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      d52deb17
  2. 17 7月, 2014 1 次提交
  3. 14 7月, 2014 1 次提交
  4. 11 7月, 2014 1 次提交
  5. 03 7月, 2014 5 次提交
  6. 19 2月, 2014 1 次提交
  7. 15 2月, 2014 1 次提交
  8. 13 2月, 2014 3 次提交
  9. 12 12月, 2013 1 次提交
  10. 05 12月, 2013 9 次提交
  11. 22 10月, 2013 1 次提交
  12. 16 10月, 2013 5 次提交
  13. 14 10月, 2013 3 次提交
  14. 13 10月, 2013 3 次提交
  15. 12 10月, 2013 1 次提交