Bluetooth: controller: legacy: Fix redundant priv variable check
Fix the redundant check of priv flag variable introduced as
regression in commit f8877e39ce
("Bluetooth: controller:
legacy: Fix controller address check").
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
5c1a3fd6f7
commit
9a6d200cb9
1 changed files with 2 additions and 2 deletions
|
@ -478,8 +478,8 @@ u8_t ll_adv_enable(u8_t enable)
|
|||
* found the fallback address was used instead, check
|
||||
* that a valid address has been set.
|
||||
*/
|
||||
if ((priv || pdu_adv->tx_addr) &&
|
||||
!mem_nz(&pdu_adv->adv_ind.addr[0], BDADDR_SIZE)) {
|
||||
if (pdu_adv->tx_addr &&
|
||||
!mem_nz(pdu_adv->adv_ind.addr, BDADDR_SIZE)) {
|
||||
return BT_HCI_ERR_INVALID_PARAM;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue