Browse Source

qcacmn: Set WMI_CHAN_FLAG_DFS flag only in ap mode

Currently on vdev start WMI_CHAN_FLAG_DFS flag is being set
irrespective of the device mode which may lead to unexpected
behavior in FW.

To address above issue set WMI_CHAN_FLAG_DFS flag in vdev
start only if vdev is operating in ap mode.

Change-Id: I96b291ad137b96e40c6620c86f50860670595ae0
CRs-Fixed: 2808013
Ashish Kumar Dhanotiya 4 years ago
parent
commit
7513cfccd4
1 changed files with 7 additions and 3 deletions
  1. 7 3
      umac/mlme/vdev_mgr/core/src/vdev_mgr_ops.c

+ 7 - 3
umac/mlme/vdev_mgr/core/src/vdev_mgr_ops.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -191,8 +191,12 @@ static QDF_STATUS vdev_mgr_start_param_update(
 	param->channel.mhz = des_chan->ch_freq;
 	param->channel.half_rate = mlme_obj->mgmt.rate_info.half_rate;
 	param->channel.quarter_rate = mlme_obj->mgmt.rate_info.quarter_rate;
-	param->channel.dfs_set = wlan_reg_is_dfs_for_freq(pdev,
-							  des_chan->ch_freq);
+
+	if (vdev_mgr_is_opmode_sap_or_p2p_go(op_mode))
+		param->channel.dfs_set = wlan_reg_is_dfs_for_freq(
+							pdev,
+							des_chan->ch_freq);
+
 	param->channel.is_chan_passive =
 		utils_is_dfs_chan_for_freq(pdev, param->channel.mhz);
 	param->channel.allow_ht = mlme_obj->proto.ht_info.allow_ht;