Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0606448 authored by Ashish Kumar Dhanotiya's avatar Ashish Kumar Dhanotiya Committed by Gerrit - the friendly Code Review server
Browse files

qcacmn: Do not update dfs parameters for 6GHz frequencies

6GHz do not have any dfs channels so do not update dfs related
parameters for 6GHz frequencies

Change-Id: I791622ce4b401bca65f132665eb2a1ebd7c9e931
CRs-Fixed: 3020653
parent 99468025
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -97,11 +97,10 @@ static bool vdev_mgr_is_opmode_sap_or_p2p_go(enum QDF_OPMODE op_mode)
	return (op_mode == QDF_SAP_MODE || op_mode == QDF_P2P_GO_MODE);
}

static bool vdev_mgr_is_49G_5G_6G_chan_freq(uint16_t chan_freq)
static bool vdev_mgr_is_49G_5G_chan_freq(uint16_t chan_freq)
{
	return WLAN_REG_IS_5GHZ_CH_FREQ(chan_freq) ||
		WLAN_REG_IS_49GHZ_FREQ(chan_freq) ||
		WLAN_REG_IS_6GHZ_CHAN_FREQ(chan_freq);
		WLAN_REG_IS_49GHZ_FREQ(chan_freq);
}
#else
static inline bool vdev_mgr_is_opmode_sap_or_p2p_go(enum QDF_OPMODE op_mode)
@@ -109,7 +108,7 @@ static inline bool vdev_mgr_is_opmode_sap_or_p2p_go(enum QDF_OPMODE op_mode)
	return true;
}

static inline bool vdev_mgr_is_49G_5G_6G_chan_freq(uint16_t chan_freq)
static inline bool vdev_mgr_is_49G_5G_chan_freq(uint16_t chan_freq)
{
	return true;
}
@@ -151,7 +150,7 @@ static QDF_STATUS vdev_mgr_start_param_update(

	op_mode = wlan_vdev_mlme_get_opmode(vdev);
	if (vdev_mgr_is_opmode_sap_or_p2p_go(op_mode) &&
	    vdev_mgr_is_49G_5G_6G_chan_freq(des_chan->ch_freq)) {
	    vdev_mgr_is_49G_5G_chan_freq(des_chan->ch_freq)) {
		tgt_dfs_set_current_channel_for_freq(pdev, des_chan->ch_freq,
						     des_chan->ch_flags,
						     des_chan->ch_flagext,