commit | ebb5b9a558753fb3424c6ee03b76efcc9d0bb835 | [log] [tgz] |
---|---|---|
author | Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> | Mon Feb 01 17:48:44 2021 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Feb 02 07:15:40 2021 -0500 |
tree | 190751079d3d7bf82cdc9b4c116c3fe10a48836c | |
parent | d91fd612a1e01ff107e5051ee5c1a34e11749ca7 [diff] |
Bluetooth: shell: Fix 'bt per-adv-data' ad_len parameter is not length of complete advertising data, but number of bt_data structs passed to bt_le_per_adv_set_data - we pass only one. Also memset target buffer before converting hex string so data shorter than specified will be right-padded with zeroes instead of some leftovers. Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>