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 <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-02-01 18:17:35 +02:00 committed by Anas Nashif
commit 0270fda003

View file

@ -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;
}