summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Collins <ccollins@apache.org>2016-08-09 17:01:02 -0700
committerChristopher Collins <ccollins@apache.org>2016-08-09 17:01:02 -0700
commite02d7abab902a1ad509bef3b45a225df2e45e026 (patch)
tree8cb0f568f330ab3b9db30b743f9eb92bdb419697
parent0d279b6933a15c5c76264a1f4325810470dd0fdb (diff)
fixup adv
-rw-r--r--net/nimble/host/include/host/ble_hs_adv.h3
-rw-r--r--net/nimble/host/src/ble_hs_adv.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/net/nimble/host/include/host/ble_hs_adv.h b/net/nimble/host/include/host/ble_hs_adv.h
index cbbb468e..8ae2b00b 100644
--- a/net/nimble/host/include/host/ble_hs_adv.h
+++ b/net/nimble/host/include/host/ble_hs_adv.h
@@ -22,6 +22,9 @@
#include <inttypes.h>
+/** Max field payload size (account for 2-byte header). */
+#define BLE_HS_ADV_MAX_FIELD_SZ (BLE_HCI_MAX_ADV_DATA_LEN - 2)
+
struct ble_hs_adv_fields {
/*** 0x01 - Flags. */
uint8_t flags;
diff --git a/net/nimble/host/src/ble_hs_adv.c b/net/nimble/host/src/ble_hs_adv.c
index 305c6727..fd7bfafb 100644
--- a/net/nimble/host/src/ble_hs_adv.c
+++ b/net/nimble/host/src/ble_hs_adv.c
@@ -23,9 +23,6 @@
#include "host/ble_hs_adv.h"
#include "ble_hs_priv.h"
-/** Max field paylaod size (account for 2-byte header). */
-#define BLE_HS_ADV_MAX_FIELD_SZ (BLE_HCI_MAX_ADV_DATA_LEN - 2)
-
static uint16_t ble_hs_adv_uuids16[BLE_HS_ADV_MAX_FIELD_SZ / 2];
static uint32_t ble_hs_adv_uuids32[BLE_HS_ADV_MAX_FIELD_SZ / 4];