Skip to content

Commit 427feb4

Browse files
committed
tests: bsim: Bluetooth: Do not use the BT_ prefix
Do not use the BT_ prefix for definitions not provided by the Bluetooth subsystem. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent b1c0ab2 commit 427feb4

File tree

1 file changed

+7
-7
lines changed
  • tests/bsim/bluetooth/host/adv/chain/src

1 file changed

+7
-7
lines changed

tests/bsim/bluetooth/host/adv/chain/src/main.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
#include "babblekit/testcase.h"
1818

1919
#define NAME_LEN 30
20-
#define BT_AD_DATA_NAME_SIZE (sizeof(CONFIG_BT_DEVICE_NAME) - 1U + 2U)
21-
#define BT_AD_DATA_MFG_DATA_SIZE (254U + 2U)
20+
#define AD_DATA_NAME_SIZE (sizeof(CONFIG_BT_DEVICE_NAME) - 1U + 2U)
21+
#define AD_DATA_MFG_DATA_SIZE (254U + 2U)
2222
/*
2323
* for testing chaining the manufacturing data is duplicated, hence DATA_LEN needs to
2424
* add twice the size for this element
2525
*/
26-
#define DATA_LEN MIN((BT_AD_DATA_NAME_SIZE + \
27-
BT_AD_DATA_MFG_DATA_SIZE + BT_AD_DATA_MFG_DATA_SIZE), \
26+
#define DATA_LEN MIN((AD_DATA_NAME_SIZE + \
27+
AD_DATA_MFG_DATA_SIZE + AD_DATA_MFG_DATA_SIZE), \
2828
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX)
2929

3030
/* One less extended advertising set as first one is legacy advertising in the broadcaster_multiple
3131
* sample.
3232
*/
33-
#define BT_EXT_ADV_MAX_ADV_SET (CONFIG_BT_EXT_ADV_MAX_ADV_SET - 1)
33+
#define MAX_EXT_ADV_SET (CONFIG_BT_EXT_ADV_MAX_ADV_SET - 1)
3434

3535
static K_SEM_DEFINE(sem_recv, 0, 1);
3636

@@ -81,7 +81,7 @@ static bool data_cb(struct bt_data *data, void *user_data)
8181
static void scan_recv(const struct bt_le_scan_recv_info *info,
8282
struct net_buf_simple *buf)
8383
{
84-
static uint8_t sid[BT_EXT_ADV_MAX_ADV_SET];
84+
static uint8_t sid[MAX_EXT_ADV_SET];
8585
static uint8_t sid_count;
8686
char name[NAME_LEN];
8787
uint8_t data_status;
@@ -118,7 +118,7 @@ static void scan_recv(const struct bt_le_scan_recv_info *info,
118118

119119
printk("Received advertising sets: %d\n", sid_count);
120120

121-
if (sid_count < BT_EXT_ADV_MAX_ADV_SET) {
121+
if (sid_count < MAX_EXT_ADV_SET) {
122122
return;
123123
}
124124

0 commit comments

Comments
 (0)