Browse Source

Merge "qcacmn: Add the channel structure as an argument for ETSI preCAC check"

Linux Build Service Account 5 năm trước cách đây
mục cha
commit
4a2977c91d

+ 2 - 2
umac/dfs/core/src/misc/dfs_etsi_precac.c

@@ -76,14 +76,14 @@ int dfs_is_subchan_in_etsi_precac_done_list(struct wlan_dfs *dfs,
 	return 0;
 }
 
-bool dfs_is_etsi_precac_done(struct wlan_dfs *dfs)
+bool dfs_is_etsi_precac_done(struct wlan_dfs *dfs, struct dfs_channel *channel)
 {
 	bool ret_val = 1;
 	uint8_t channels[NUM_CHANNELS_160MHZ];
 	uint8_t nchannels = 0;
 	int i;
 
-	nchannels = dfs_get_bonding_channels_without_seg_info(dfs->dfs_curchan,
+	nchannels = dfs_get_bonding_channels_without_seg_info(channel,
 							      channels);
 
 	for (i = 0; i < nchannels; i++) {

+ 1 - 1
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -1847,7 +1847,7 @@ void dfs_start_precac_timer(struct wlan_dfs *dfs,
 	 * that etsi_precac/cac is done on primary segment.
 	 */
 	if (WLAN_IS_CHAN_DFS(dfs->dfs_curchan) &&
-	    !dfs_is_etsi_precac_done(dfs) &&
+	    !dfs_is_etsi_precac_done(dfs, dfs->dfs_curchan) &&
 	    !dfs_is_precac_done(dfs, dfs->dfs_curchan))
 		precac_timeout = QDF_MAX(primary_cac_timeout,
 					 secondary_cac_timeout) +