@@ -69,9 +69,10 @@ BUILD_ASSERT(CONFIG_NRF70_MAX_TX_AGGREGATION <= 15,
6969	"Max TX aggregation is 15" );
7070BUILD_ASSERT (CONFIG_NRF70_RX_NUM_BUFS  >= 1 ,
7171	"At least one RX buffer is required" );
72+ #ifndef  CONFIG_NRF71_ON_IPC 
7273BUILD_ASSERT (RPU_PKTRAM_SIZE  -  TOTAL_RX_SIZE  >= TOTAL_TX_SIZE ,
7374	"Packet RAM overflow: not enough memory for TX" );
74- 
75+ #endif   /* CONFIG_NRF71_ON_IPC */ 
7576BUILD_ASSERT (CONFIG_NRF70_TX_MAX_DATA_SIZE  >= MAX_TX_FRAME_SIZE ,
7677	"TX buffer size must be at least as big as the MTU and headroom" );
7778
@@ -503,12 +504,9 @@ void reg_change_callbk_fn(void *vif_ctx,
503504}
504505#endif  /* !CONFIG_NRF70_RADIO_TEST */ 
505506
506- #ifdef  CONFIG_NRF71_ON_IPC 
507- #define  MAX_TX_PWR (label ) DT_PROP(DT_NODELABEL(wifi), label) * 4
508- #else 
507+ #ifndef  CONFIG_NRF71_ON_IPC 
509508/* DTS uses 1dBm as the unit for TX power, while the RPU uses 0.25dBm */ 
510509#define  MAX_TX_PWR (label ) DT_PROP(DT_NODELABEL(nrf70), label) * 4
511- #endif  /* CONFIG_NRF71_ON_IPC */ 
512510
513511void  configure_tx_pwr_settings (struct  nrf_wifi_tx_pwr_ctrl_params  * tx_pwr_ctrl_params ,
514512				struct  nrf_wifi_tx_pwr_ceil_params  * tx_pwr_ceil_params )
@@ -587,6 +585,7 @@ void configure_board_dep_params(struct nrf_wifi_board_params *board_params)
587585	board_params -> pcb_loss_5g_band3  =  CONFIG_NRF70_PCB_LOSS_5G_BAND3 ;
588586#endif  /* CONFIG_NRF70_2_4G_ONLY */ 
589587}
588+ #endif  /* CONFIG_NRF71_ON_IPC */ 
590589
591590enum  nrf_wifi_status  nrf_wifi_fmac_dev_add_zep (struct  nrf_wifi_drv_priv_zep  * drv_priv_zep )
592591{
@@ -606,7 +605,6 @@ enum nrf_wifi_status nrf_wifi_fmac_dev_add_zep(struct nrf_wifi_drv_priv_zep *drv
606605	struct  nrf_wifi_tx_pwr_ctrl_params  tx_pwr_ctrl_params ;
607606	struct  nrf_wifi_tx_pwr_ceil_params  tx_pwr_ceil_params ;
608607	struct  nrf_wifi_board_params  board_params ;
609- 
610608	unsigned int   fw_ver  =  0 ;
611609
612610#if  defined(CONFIG_NRF70_SR_COEX_SLEEP_CTRL_GPIO_CTRL ) &&  \
@@ -654,10 +652,12 @@ enum nrf_wifi_status nrf_wifi_fmac_dev_add_zep(struct nrf_wifi_drv_priv_zep *drv
654652		NRF_WIFI_UMAC_VER_MIN (fw_ver ),
655653		NRF_WIFI_UMAC_VER_EXTRA (fw_ver ));
656654
655+ #ifndef  CONFIG_NRF71_ON_IPC 
657656	configure_tx_pwr_settings (& tx_pwr_ctrl_params ,
658657				  & tx_pwr_ceil_params );
659658
660659	configure_board_dep_params (& board_params );
660+ #endif  /* CONFIG_NRF71_ON_IPC */ 
661661
662662#if  defined(CONFIG_NRF70_SR_COEX_SLEEP_CTRL_GPIO_CTRL ) &&  \
663663	defined(CONFIG_NRF70_SYSTEM_MODE )
@@ -834,9 +834,14 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
834834	struct  nrf_wifi_sys_fmac_priv  * sys_fpriv  =  NULL ;
835835
836836	sys_fpriv  =  wifi_fmac_priv (rpu_drv_priv_zep .fmac_priv );
837+ #ifdef  CONFIG_NRF71_ON_IPC 
838+ 	/* TODO: Revisit this */ 
839+ 	sys_fpriv -> max_ampdu_len_per_token  =  8192 ;
840+ #else 
837841	sys_fpriv -> max_ampdu_len_per_token  = 
838842		(RPU_PKTRAM_SIZE  -  (CONFIG_NRF70_RX_NUM_BUFS  *  CONFIG_NRF70_RX_MAX_DATA_SIZE )) /
839843		CONFIG_NRF70_MAX_TX_TOKENS ;
844+ #endif  /* CONFIG_NRF71_ON_IPC */ 
840845	/* Align to 4-byte */ 
841846	sys_fpriv -> max_ampdu_len_per_token  &= ~0x3 ;
842847
0 commit comments