From 0270fda003c99b893e09286257b3cdba8d09b57d Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 1 Feb 2016 18:17:35 +0200 Subject: [PATCH] drivers/nble: Fix error return for NRPA advertising address type Currently the nble implementation doesn't support advertising with an NRPA. Change-Id: I80e3e2a72d73d23f37966eb429a8ffb8d8c50bf5 Signed-off-by: Johan Hedberg --- drivers/nble/gap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nble/gap.c b/drivers/nble/gap.c index a3579ef7b57..0445f0c3f5e 100644 --- a/drivers/nble/gap.c +++ b/drivers/nble/gap.c @@ -147,8 +147,8 @@ static bool valid_adv_param(const struct bt_le_adv_param *param) switch (param->addr_type) { case BT_LE_ADV_ADDR_IDENTITY: - case BT_LE_ADV_ADDR_NRPA: break; + case BT_LE_ADV_ADDR_NRPA: /* nble doesn't support NRPAs (for now) */ default: return false; }