Browse Source

qcacmn: Add regulatory rx_ops for setting DFS channels availability

Add regulatory rx_ops for setting DFS channels availability to be
called from Offload layer.

Change-Id: I15cec0f119baf5668052618dc3a2552470d1f14f
CRs-Fixed: 2384202
Vignesh U 5 years ago
parent
commit
94395f626b

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

@@ -964,6 +964,8 @@ struct wlan_lmac_if_reg_rx_ops {
 			uint16_t regdmn);
 	QDF_STATUS (*reg_get_current_regdomain)(struct wlan_objmgr_pdev *pdev,
 			struct cur_regdmn_info *cur_regdmn);
+	QDF_STATUS (*reg_enable_dfs_channels)(struct wlan_objmgr_pdev *pdev,
+					      bool dfs_enable);
 };
 
 #ifdef CONVERGED_P2P_ENABLE

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

@@ -316,6 +316,9 @@ static void wlan_lmac_if_umac_reg_rx_ops_register(
 
 	rx_ops->reg_rx_ops.reg_get_current_regdomain =
 		wlan_reg_get_curr_regdomain;
+
+	rx_ops->reg_rx_ops.reg_enable_dfs_channels =
+		ucfg_reg_enable_dfs_channels;
 }
 
 #ifdef CONVERGED_P2P_ENABLE