Bluetooth: controller: Decorrelate address generation from resolution

Changes related to Bluetooth TSE 11068.

This is done because the current test suite does not issue
an LE Enable Address Resolution command anymore in RPA
generation tests. Makes sense now that the Bluetooth SIG has
agreed to completely decouple address resolution from
generation.

Fixes BT LL TS 5.1.0 test:
LL/SEC/ADV/BV-03-C [Privacy - Non-connectable Undirected
Advertising, Resolvable Private Address]

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2019-07-29 17:45:09 +05:30 committed by Carles Cufí
commit 09c1c9e800
2 changed files with 2 additions and 16 deletions

View file

@ -45,6 +45,7 @@ static struct {
} wl[WL_SIZE]; } wl[WL_SIZE];
static u8_t rl_enable; static u8_t rl_enable;
static struct rl_dev { static struct rl_dev {
u8_t taken:1; u8_t taken:1;
u8_t rpas_ready:1; u8_t rpas_ready:1;
@ -684,20 +685,12 @@ static void rpa_timeout(struct k_work *work)
static void rpa_refresh_start(void) static void rpa_refresh_start(void)
{ {
if (!rl_enable) {
return;
}
BT_DBG(""); BT_DBG("");
k_delayed_work_submit(&rpa_work, rpa_timeout_ms); k_delayed_work_submit(&rpa_work, rpa_timeout_ms);
} }
static void rpa_refresh_stop(void) static void rpa_refresh_stop(void)
{ {
if (!rl_enable) {
return;
}
k_delayed_work_cancel(&rpa_work); k_delayed_work_cancel(&rpa_work);
} }

View file

@ -56,6 +56,7 @@ static struct {
} wl[WL_SIZE]; } wl[WL_SIZE];
static u8_t rl_enable; static u8_t rl_enable;
static struct rl_dev { static struct rl_dev {
u8_t taken:1; u8_t taken:1;
u8_t rpas_ready:1; u8_t rpas_ready:1;
@ -925,20 +926,12 @@ static void rpa_timeout(struct k_work *work)
static void rpa_refresh_start(void) static void rpa_refresh_start(void)
{ {
if (!rl_enable) {
return;
}
BT_DBG(""); BT_DBG("");
k_delayed_work_submit(&rpa_work, rpa_timeout_ms); k_delayed_work_submit(&rpa_work, rpa_timeout_ms);
} }
static void rpa_refresh_stop(void) static void rpa_refresh_stop(void)
{ {
if (!rl_enable) {
return;
}
k_delayed_work_cancel(&rpa_work); k_delayed_work_cancel(&rpa_work);
} }