Ver Fonte

qcacmn: Add reg_rx_ops for wlan_reg_is_range_overlap_6g

Add reg_rx_ops for wlan_reg_is_range_overlap_6g, to use the API
outside the umac.ko module.

Change-Id: Iac64d9f15d5d5bed00b2656571dfba34e9933bc4
CRs-Fixed: 2818160
Hariharan Basuthkar há 4 anos atrás
pai
commit
3824548f38

+ 2 - 0
umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h

@@ -1181,6 +1181,8 @@ struct wlan_lmac_if_reg_rx_ops {
 					  uint32_t wireless_modes);
 	bool
 	(*reg_is_range_only6g)(qdf_freq_t low_freq, qdf_freq_t high_freq);
+	bool
+	(*reg_is_range_overlap_6g)(qdf_freq_t low_freq, qdf_freq_t high_freq);
 	QDF_STATUS (*reg_disable_chan_coex)(struct wlan_objmgr_pdev *pdev,
 					    uint8_t unii_5g_bitmap);
 	bool (*reg_ignore_fw_reg_offload_ind)(struct wlan_objmgr_psoc *psoc);

+ 3 - 0
umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c

@@ -340,6 +340,9 @@ static void wlan_lmac_if_umac_reg_rx_ops_register(
 	rx_ops->reg_rx_ops.reg_is_range_only6g =
 		wlan_reg_is_range_only6g;
 
+	rx_ops->reg_rx_ops.reg_is_range_overlap_6g =
+		wlan_reg_is_range_overlap_6g;
+
 	rx_ops->reg_rx_ops.reg_ignore_fw_reg_offload_ind =
 		tgt_reg_ignore_fw_reg_offload_ind;