1. 17 3月, 2015 9 次提交
  2. 16 3月, 2015 6 次提交
  3. 14 3月, 2015 1 次提交
  4. 13 3月, 2015 1 次提交
  5. 12 3月, 2015 1 次提交
  6. 28 2月, 2015 1 次提交
  7. 21 2月, 2015 1 次提交
  8. 01 2月, 2015 1 次提交
  9. 16 1月, 2015 1 次提交
  10. 15 1月, 2015 3 次提交
  11. 14 1月, 2015 1 次提交
  12. 03 1月, 2015 2 次提交
  13. 30 12月, 2014 5 次提交
  14. 10 12月, 2014 2 次提交
  15. 09 12月, 2014 1 次提交
  16. 08 12月, 2014 1 次提交
  17. 03 12月, 2014 3 次提交
    • J
      Bluetooth: Fix false-positive "uninitialized" compiler warning · 580039e8
      Johan Hedberg 提交于
      Some gcc versions don't seem to be able to properly track the flow of
      the smp_cmd_pairing_random() function and end up causing the following
      types of (false-positive) warnings:
      
       smp.c:1995:6: warning: ‘nb’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = smp_g2(smp->tfm_cmac, pkax, pkbx, na, nb, &passkey);
       smp.c:1995:6: warning: ‘na’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = smp_g2(smp->tfm_cmac, pkax, pkbx, na, nb, &passkey);
             ^
       smp.c:1995:6: warning: ‘pkbx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = smp_g2(smp->tfm_cmac, pkax, pkbx, na, nb, &passkey);
             ^
       smp.c:1995:6: warning: ‘pkax’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         err = smp_g2(smp->tfm_cmac, pkax, pkbx, na, nb, &passkey);
      
      This patch fixes the issue by moving the pkax/pkbx and na/nb
      initialization earlier in the function.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      580039e8
    • J
      Bluetooth: Fix minor coding style issue in smp.c · 7f376cd6
      Johan Hedberg 提交于
      The convention for checking for NULL pointers is !ptr and not
      ptr == NULL. This patch fixes such an occurrence in smp.c.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      7f376cd6
    • J
      Bluetooth: Fix SMP debug key handling · 923e2414
      Johan Hedberg 提交于
      We need to keep debug keys around at least until the point that they are
      used - otherwise e.g. slave role behavior wouldn't work as there'd be no
      key to be looked up. The correct behavior should therefore be to return
      any stored keys but when we clean up the SMP context to remove the key
      from the hdev list if keeping debug keys around hasn't been requestsed.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      923e2414