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:
Łukasz Rymanowski
2017-06-27 13:54:45 +02:00
parent 1510f66c2b
commit 37904f3ef2
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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;
+4
View File
@@ -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)
/*