mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-01 10:06:11 +00:00
nimble/controller: Fix native and nrf51 header on RX
With this patch we make sure phy and aux_data are set correctly in data receive header for all the supported phy X-Original-Commit: ab1ce17187828b547b9043e416913e3e14b6b7b3
This commit is contained in:
@@ -276,6 +276,10 @@ ble_phy_isr(void)
|
||||
ble_hdr->rxinfo.flags = 0;
|
||||
ble_hdr->rxinfo.rssi = -77; /* XXX: dummy rssi */
|
||||
ble_hdr->rxinfo.channel = g_ble_phy_data.phy_chan;
|
||||
ble_hdr->rxinfo.phy = BLE_PHY_1M;
|
||||
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
|
||||
ble_hdr->rxinfo.aux_data = NULL;
|
||||
#endif
|
||||
|
||||
/* Count PHY crc errors and valid packets */
|
||||
crcok = 1;
|
||||
|
||||
@@ -695,6 +695,10 @@ ble_phy_rx_start_isr(void)
|
||||
ble_hdr->rxinfo.flags = ble_ll_state_get();
|
||||
ble_hdr->rxinfo.channel = g_ble_phy_data.phy_chan;
|
||||
ble_hdr->rxinfo.handle = 0;
|
||||
ble_hdr->rxinfo.phy = BLE_PHY_1M;
|
||||
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
|
||||
ble_hdr->rxinfo.aux_data = NULL;
|
||||
#endif
|
||||
|
||||
#if (MYNEWT_VAL(OS_CPUTIME_FREQ) == 32768)
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user