ソースを参照

qcacld-3.0: Do not clear channel stats after ACS completion

As part of SAP ACS optimization, the last ACS scan's result
can be reused in current ACS request if the last scan done
was not greater then last_scan_ageout_time provided as part
of do_acs command. So, do not clear channel stats after
ACS completion if SAP ACS optimization feature is enabled.

Change-Id: Idac6225f790d84ba90ebd740602d0c5d358ed2dc
CRs-Fixed: 3297868
Surabhi Vishnoi 2 年 前
コミット
25112131d0
1 ファイル変更7 行追加0 行削除
  1. 7 0
      core/sap/src/sap_ch_select.c

+ 7 - 0
core/sap/src/sap_ch_select.c

@@ -614,6 +614,7 @@ static struct channel_status *sap_get_channel_status
 	return ucfg_mc_cp_stats_get_channel_status(p_mac->pdev, chan_freq);
 	return ucfg_mc_cp_stats_get_channel_status(p_mac->pdev, chan_freq);
 }
 }
 
 
+#ifndef WLAN_FEATURE_SAP_ACS_OPTIMIZE
 /**
 /**
  * sap_clear_channel_status() - clear chan info
  * sap_clear_channel_status() - clear chan info
  * @p_mac: Pointer to Global MAC structure
  * @p_mac: Pointer to Global MAC structure
@@ -627,6 +628,12 @@ static void sap_clear_channel_status(struct mac_context *p_mac)
 
 
 	ucfg_mc_cp_stats_clear_channel_status(p_mac->pdev);
 	ucfg_mc_cp_stats_clear_channel_status(p_mac->pdev);
 }
 }
+#else
+static void sap_clear_channel_status(struct mac_context *p_mac)
+{
+}
+#endif
+
 /**
 /**
  * sap_weight_channel_noise_floor() - compute noise floor weight
  * sap_weight_channel_noise_floor() - compute noise floor weight
  * @sap_ctx:  sap context
  * @sap_ctx:  sap context