|
@@ -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;
|