|
@@ -397,6 +397,8 @@ QDF_STATUS wlan_dfs_pdev_obj_create_notification(struct wlan_objmgr_pdev *pdev,
|
|
uint8_t pdev_id;
|
|
uint8_t pdev_id;
|
|
QDF_STATUS status;
|
|
QDF_STATUS status;
|
|
bool is_5ghz = false;
|
|
bool is_5ghz = false;
|
|
|
|
+ bool is_6ghz_only_pdev;
|
|
|
|
+ qdf_freq_t low_5g, high_5g;
|
|
|
|
|
|
if (!pdev) {
|
|
if (!pdev) {
|
|
dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "null pdev");
|
|
dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "null pdev");
|
|
@@ -409,6 +411,17 @@ QDF_STATUS wlan_dfs_pdev_obj_create_notification(struct wlan_objmgr_pdev *pdev,
|
|
return QDF_STATUS_E_FAILURE;
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ wlan_reg_get_freq_range(pdev, NULL, NULL, &low_5g, &high_5g);
|
|
|
|
+ is_6ghz_only_pdev = wlan_reg_is_range_only6g(low_5g, high_5g);
|
|
|
|
+
|
|
|
|
+ if (is_6ghz_only_pdev) {
|
|
|
|
+ pdev_id = wlan_objmgr_pdev_get_pdev_id(pdev);
|
|
|
|
+ dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS,
|
|
|
|
+ "Do not allocate DFS object for 6G, pdev_id = %d",
|
|
|
|
+ pdev_id);
|
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
|
+ }
|
|
|
|
+
|
|
dfs_tx_ops = wlan_psoc_get_dfs_txops(psoc);
|
|
dfs_tx_ops = wlan_psoc_get_dfs_txops(psoc);
|
|
if (!(dfs_tx_ops && dfs_tx_ops->dfs_is_pdev_5ghz)) {
|
|
if (!(dfs_tx_ops && dfs_tx_ops->dfs_is_pdev_5ghz)) {
|
|
dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs_tx_ops is null");
|
|
dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs_tx_ops is null");
|