Commit Graph

35 Commits

Author SHA1 Message Date
Anderson Lizardo
57207bf438 tools: Fix unaligned memory access on smp-tester
Fixes clang errors like:

tools/smp-tester.c:263:11: error: cast from 'uint8_t *' (aka 'unsigned
char *') to 'u128 *' increases required alignment from 1 to 8
[-Werror,-Wcast-align]
2014-01-06 21:21:22 +02:00
Johan Hedberg
de7ad8b451 tools/smp-tester: Prefer tester_warn() over fprintf 2013-12-17 13:00:16 +02:00
Johan Hedberg
9e08218d0f tools/smp-tester: Improve logging of received SMP PDUs 2013-11-29 15:12:49 +02:00
Johan Hedberg
1b69573571 tools/smp-tester: Minor whitespace fix 2013-11-29 15:09:25 +02:00
Johan Hedberg
31097ac39e tools/smp-tester: Unify SMP handler code for client and server tests 2013-11-29 15:06:39 +02:00
Johan Hedberg
10d860104b tools/smp-tester: Add support for generating the LTK 2013-11-29 14:12:02 +02:00
Johan Hedberg
ac2998a117 tools/smp-tester: Add expected Pairing Random packet to basic server test 2013-11-29 14:11:06 +02:00
Johan Hedberg
477ed93ae3 tools/smp-tester: Fix missing copy to smp_rrnd 2013-11-29 14:11:06 +02:00
Johan Hedberg
a58d20e418 tools/smp-tester: Minor white space fix 2013-11-28 17:51:17 +02:00
Johan Hedberg
1e367a94b0 tools/smp-tester: Fix pairing random PDU content 2013-11-28 16:36:36 +02:00
Johan Hedberg
b6d3089ff1 tools/smp-tester: Add Pairing Random PDUs to basic client test case 2013-11-28 16:36:35 +02:00
Johan Hedberg
5ad6c5b449 tools/smp-tester: Remove unnecessary preq and pres variables 2013-11-28 16:36:35 +02:00
Johan Hedberg
866daa8ef1 tools/smp-tester: Remove unnecessary k variable 2013-11-28 16:36:35 +02:00
Johan Hedberg
aa1160d9f6 tools/smp-tester: Remove unnecessary ia and ra variables 2013-11-28 16:36:35 +02:00
Johan Hedberg
794a226e23 tools/smp-tester: Remove unnecessary _rat and _iat variables 2013-11-28 16:36:35 +02:00
Johan Hedberg
4d1b890679 tools/smp-tester: Fix address type values 2013-11-28 16:36:35 +02:00
Johan Hedberg
2cf3ee6cd6 tools/smp-tester: Reorder switch statements numerically 2013-11-28 16:36:35 +02:00
Johan Hedberg
2d8d8833d2 tools/smp-tester: Fix missing swap128() in Pairing Confirm response 2013-11-28 16:36:34 +02:00
Johan Hedberg
6ead49acfa tools/smp-tester: Add missing initializations of smp_preq/prsp 2013-11-28 16:36:34 +02:00
Johan Hedberg
85f6c8282d tools/smp-tester: Fix whitespace issues 2013-11-28 16:36:34 +02:00
Johan Hedberg
d7a107431f tools/smp-tester: Simplify smp_c1() usage 2013-11-28 16:36:34 +02:00
Johan Hedberg
f65e6cf8c3 tools/smp-tester: Add more smp_c1 related hooks 2013-11-28 16:36:34 +02:00
Johan Hedberg
4b30a30645 tools/smp-tester: Initialize smp_rrnd when receiving pairing random PDU 2013-11-28 16:36:34 +02:00
Johan Hedberg
c66d883dba tools/smp-tester: Implement initial smp_c1 function 2013-11-28 16:36:34 +02:00
Johan Hedberg
76836c91c6 tools/smp-tester: Initialize all test data to zero 2013-11-28 16:36:33 +02:00
Johan Hedberg
d87d824d09 tools/smp-tester: Add initial code for accessing AF_ALG 2013-11-28 16:36:33 +02:00
Johan Hedberg
d475b20ba3 tools/smp-tester: Pairing Random and Pairing Confirm packets are special
The SMP Pairing Random and Pairing Confirm packets are special in that
we actually have to do some math to verify them and to send them. For
now add just empty stubs for these.
2013-11-28 16:36:33 +02:00
Johan Hedberg
7c27a9f2c7 tools/smp-tester: Add server support for multiple req-rsp pairs in tests 2013-11-28 16:36:33 +02:00
Johan Hedberg
4f4f5d398e tools/smp-tester: Add client support for multiple req-rsp pairs in tests 2013-11-28 16:36:33 +02:00
Johan Hedberg
1a6e9568ab tools/smp-tester: Fix setting pariable setting for server tests 2013-11-28 16:36:33 +02:00
Johan Hedberg
b5d9d82f40 tools/smp-tester: Clarify bthost callback naming 2013-11-06 13:57:01 +02:00
Johan Hedberg
c69980581a tools/smp-tester: Add initial SMP client test code 2013-11-06 13:57:01 +02:00
Johan Hedberg
c7a5f3f460 tools/smp-tester: Make basic parameters usable for both slave and master 2013-11-06 13:57:01 +02:00
Johan Hedberg
ced41b02f9 tools/smp-tester: Add simple success test case 2013-11-05 13:40:30 +02:00
Johan Hedberg
5d09808201 tools: Add smp-tester for automated LE SMP end-to-end tests 2013-11-05 11:38:12 +02:00