Bluetooth: controller: Use set handle for LE Scan Request Received
Set handle is passed in node_rx header. Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
This commit is contained in:
parent
37badf0afa
commit
bca3560100
3 changed files with 8 additions and 7 deletions
|
@ -3747,7 +3747,6 @@ static void le_scan_req_received(struct pdu_data *pdu_data,
|
|||
struct pdu_adv *adv = (void *)pdu_data;
|
||||
struct bt_hci_evt_le_scan_req_received *sep;
|
||||
|
||||
/* TODO: fill handle when Adv Ext. feature is implemented. */
|
||||
|
||||
if (!(event_mask & BT_EVT_MASK_LE_META_EVENT) ||
|
||||
!(le_event_mask & BT_EVT_MASK_LE_SCAN_REQ_RECEIVED)) {
|
||||
|
@ -3755,7 +3754,7 @@ static void le_scan_req_received(struct pdu_data *pdu_data,
|
|||
uint8_t handle;
|
||||
int8_t rssi;
|
||||
|
||||
handle = 0U;
|
||||
handle = node_rx->hdr.handle & 0xff;
|
||||
addr.type = adv->tx_addr;
|
||||
memcpy(&addr.a.val[0], &adv->scan_req.scan_addr[0],
|
||||
sizeof(bt_addr_t));
|
||||
|
@ -3770,7 +3769,7 @@ static void le_scan_req_received(struct pdu_data *pdu_data,
|
|||
}
|
||||
|
||||
sep = meta_evt(buf, BT_HCI_EVT_LE_SCAN_REQ_RECEIVED, sizeof(*sep));
|
||||
sep->handle = 0U;
|
||||
sep->handle = node_rx->hdr.handle & 0xff;
|
||||
sep->addr.type = adv->tx_addr;
|
||||
memcpy(&sep->addr.a.val[0], &adv->scan_req.scan_addr[0],
|
||||
sizeof(bt_addr_t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue