Skip to content

Commit 027835f

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Disallow anonymous legacy advertising
Check and disallow legacy advertising from being anonymous. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 577315c commit 027835f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ uint8_t ll_adv_params_set(uint16_t interval, uint8_t adv_type,
237237
0x00 /* PDU_ADV_TYPE_ADV_IND */
238238
};
239239

240+
if (evt_prop & BT_HCI_LE_ADV_PROP_ANON) {
241+
return BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL;
242+
}
243+
240244
adv_type = leg_adv_type[evt_prop & 0x03];
241245

242246
/* high duty cycle directed */

0 commit comments

Comments
 (0)