@@ -350,7 +350,7 @@ int nrf_wifi_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_do
350
350
goto out ;
351
351
}
352
352
353
- #ifdef CONFIG_NRF70_SCAN_ONLY
353
+ #if defined( CONFIG_NRF70_SCAN_ONLY ) || defined( CONFIG_NRF70_RAW_DATA_RX )
354
354
if (reg_domain -> oper == WIFI_MGMT_SET ) {
355
355
memcpy (reg_domain_info .alpha2 , reg_domain -> country_code , WIFI_COUNTRY_CODE_LEN );
356
356
@@ -739,10 +739,10 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
739
739
data_config .rate_protection_type = rate_protection_type ;
740
740
callbk_fns .if_carr_state_chg_callbk_fn = nrf_wifi_if_carr_state_chg ;
741
741
callbk_fns .rx_frm_callbk_fn = nrf_wifi_if_rx_frm ;
742
+ #endif
742
743
#if defined(CONFIG_NRF70_RAW_DATA_RX ) || defined(CONFIG_NRF70_PROMISC_DATA_RX )
743
744
callbk_fns .sniffer_callbk_fn = nrf_wifi_if_sniffer_rx_frm ;
744
745
#endif /* CONFIG_NRF70_RAW_DATA_RX || CONFIG_NRF70_PROMISC_DATA_RX */
745
- #endif
746
746
rx_buf_pools [0 ].num_bufs = rx1_num_bufs ;
747
747
rx_buf_pools [1 ].num_bufs = rx2_num_bufs ;
748
748
rx_buf_pools [2 ].num_bufs = rx3_num_bufs ;
@@ -756,6 +756,7 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
756
756
callbk_fns .scan_start_callbk_fn = nrf_wifi_event_proc_scan_start_zep ;
757
757
callbk_fns .scan_done_callbk_fn = nrf_wifi_event_proc_scan_done_zep ;
758
758
callbk_fns .reg_change_callbk_fn = reg_change_callbk_fn ;
759
+ callbk_fns .event_get_reg = nrf_wifi_event_get_reg_zep ;
759
760
#ifdef CONFIG_NET_L2_WIFI_MGMT
760
761
callbk_fns .disp_scan_res_callbk_fn = nrf_wifi_event_proc_disp_scan_res_zep ;
761
762
#endif /* CONFIG_NET_L2_WIFI_MGMT */
@@ -769,7 +770,6 @@ static int nrf_wifi_drv_main_zep(const struct device *dev)
769
770
callbk_fns .twt_config_callbk_fn = nrf_wifi_event_proc_twt_setup_zep ;
770
771
callbk_fns .twt_teardown_callbk_fn = nrf_wifi_event_proc_twt_teardown_zep ;
771
772
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 ;
773
773
callbk_fns .event_get_ps_info = nrf_wifi_event_proc_get_power_save_info ;
774
774
callbk_fns .cookie_rsp_callbk_fn = nrf_wifi_event_proc_cookie_rsp ;
775
775
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 = {
858
858
.get_stats = nrf_wifi_stats_get ,
859
859
.reset_stats = nrf_wifi_stats_reset ,
860
860
#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
861
864
#ifdef CONFIG_NRF70_STA_MODE
862
865
.set_power_save = nrf_wifi_set_power_save ,
863
866
.set_twt = nrf_wifi_set_twt ,
864
- .reg_domain = nrf_wifi_reg_domain ,
865
867
.get_power_save_config = nrf_wifi_get_power_save_config ,
866
868
.set_rts_threshold = nrf_wifi_set_rts_threshold ,
867
869
.get_rts_threshold = nrf_wifi_get_rts_threshold ,
0 commit comments