@@ -350,7 +350,7 @@ int nrf_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_do
350350 goto out ;
351351 }
352352
353- #ifdef CONFIG_NRF70_SCAN_ONLY
353+ #if defined( CONFIG_NRF70_SCAN_ONLY ) || defined( CONFIG_NRF70_RAW_DATA_RX )
354354 if (reg_domain -> oper == WIFI_MGMT_SET ) {
355355 memcpy (reg_domain_info .alpha2 , reg_domain -> country_code , WIFI_COUNTRY_CODE_LEN );
356356
@@ -739,10 +739,10 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
739739 data_config .rate_protection_type = rate_protection_type ;
740740 callbk_fns .if_carr_state_chg_callbk_fn = nrf_wifi_if_carr_state_chg ;
741741 callbk_fns .rx_frm_callbk_fn = nrf_wifi_if_rx_frm ;
742+ #endif
742743#if defined(CONFIG_NRF70_RAW_DATA_RX ) || defined(CONFIG_NRF70_PROMISC_DATA_RX )
743744 callbk_fns .sniffer_callbk_fn = nrf_wifi_if_sniffer_rx_frm ;
744745#endif /* CONFIG_NRF70_RAW_DATA_RX || CONFIG_NRF70_PROMISC_DATA_RX */
745- #endif
746746 rx_buf_pools [0 ].num_bufs = rx1_num_bufs ;
747747 rx_buf_pools [1 ].num_bufs = rx2_num_bufs ;
748748 rx_buf_pools [2 ].num_bufs = rx3_num_bufs ;
@@ -756,6 +756,7 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
756756 callbk_fns .scan_start_callbk_fn = nrf_wifi_event_proc_scan_start_zep ;
757757 callbk_fns .scan_done_callbk_fn = nrf_wifi_event_proc_scan_done_zep ;
758758 callbk_fns .reg_change_callbk_fn = reg_change_callbk_fn ;
759+ callbk_fns .event_get_reg = nrf_wifi_event_get_reg_zep ;
759760#ifdef CONFIG_NET_L2_WIFI_MGMT
760761 callbk_fns .disp_scan_res_callbk_fn = nrf_wifi_event_proc_disp_scan_res_zep ;
761762#endif /* CONFIG_NET_L2_WIFI_MGMT */
@@ -769,7 +770,6 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
769770 callbk_fns .twt_config_callbk_fn = nrf_wifi_event_proc_twt_setup_zep ;
770771 callbk_fns .twt_teardown_callbk_fn = nrf_wifi_event_proc_twt_teardown_zep ;
771772 callbk_fns .twt_sleep_callbk_fn = nrf_wifi_event_proc_twt_sleep_zep ;
772- callbk_fns .event_get_reg = nrf_wifi_event_get_reg_zep ;
773773 callbk_fns .event_get_ps_info = nrf_wifi_event_proc_get_power_save_info ;
774774 callbk_fns .cookie_rsp_callbk_fn = nrf_wifi_event_proc_cookie_rsp ;
775775 callbk_fns .process_rssi_from_rx = nrf_wifi_process_rssi_from_rx ;
@@ -858,10 +858,12 @@ static const struct wifi_mgmt_ops nrf_wifi_mgmt_ops = {
858858 .get_stats = nrf_wifi_stats_get ,
859859 .reset_stats = nrf_wifi_stats_reset ,
860860#endif /* CONFIG_NET_STATISTICS_WIFI */
861+ #if defined(CONFIG_NRF70_STA_MODE ) || defined (CONFIG_NRF70_RAW_DATA_RX )
862+ .reg_domain = nrf_wifi_reg_domain ,
863+ #endif
861864#ifdef CONFIG_NRF70_STA_MODE
862865 .set_power_save = nrf_wifi_set_power_save ,
863866 .set_twt = nrf_wifi_set_twt ,
864- .reg_domain = nrf_wifi_reg_domain ,
865867 .get_power_save_config = nrf_wifi_get_power_save_config ,
866868 .set_rts_threshold = nrf_wifi_set_rts_threshold ,
867869 .get_rts_threshold = nrf_wifi_get_rts_threshold ,
0 commit comments