Bluetooth: Controller: Make PHY check in conn mode Kconf dependent
Constant Tone Extension may not be transmittied with PHY CODED. There were check to avoid situation that controller tries to transmit or receive CTE when PHY is set to CODED. These check were not conditionally compilated, hence when PHY Update feature is disabled code did build. The commit fixes the issue. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
8f59477dc6
commit
281ad2102e
3 changed files with 15 additions and 0 deletions
|
@ -2916,9 +2916,14 @@ static void le_df_connection_iq_report(struct node_rx_pdu *node_rx, struct net_b
|
|||
|
||||
lll = iq_report->hdr.rx_ftr.param;
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_PHY)
|
||||
phy_rx = lll->phy_rx;
|
||||
|
||||
/* Make sure the report is generated for connection on PHY UNCODED */
|
||||
LL_ASSERT(phy_rx != PHY_CODED);
|
||||
#else
|
||||
phy_rx = PHY_1M;
|
||||
#endif /* CONFIG_BT_CTLR_PHY */
|
||||
|
||||
/* TX LL thread has higher priority than RX thread. It may happen that host succefully
|
||||
* disables CTE sampling in the meantime. It should be verified here, to avoid reporing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue