|
@@ -1678,9 +1678,12 @@ static void sap_compute_spect_weight(tSapChSelSpectInfo *pSpectInfoParams,
|
|
*/
|
|
*/
|
|
|
|
|
|
rssi = (int8_t) pSpectCh->rssiAgr;
|
|
rssi = (int8_t) pSpectCh->rssiAgr;
|
|
- if (ch_in_pcl(sap_ctx, chn_num))
|
|
|
|
|
|
+ if (ch_in_pcl(sap_ctx, pSpectCh->chNum))
|
|
rssi -= PCL_RSSI_DISCOUNT;
|
|
rssi -= PCL_RSSI_DISCOUNT;
|
|
|
|
|
|
|
|
+ if (rssi < SOFTAP_MIN_RSSI)
|
|
|
|
+ rssi = SOFTAP_MIN_RSSI;
|
|
|
|
+
|
|
if (pSpectCh->weight == SAP_ACS_WEIGHT_MAX)
|
|
if (pSpectCh->weight == SAP_ACS_WEIGHT_MAX)
|
|
goto debug_info;
|
|
goto debug_info;
|
|
|
|
|
|
@@ -1697,9 +1700,9 @@ static void sap_compute_spect_weight(tSapChSelSpectInfo *pSpectInfoParams,
|
|
debug_info:
|
|
debug_info:
|
|
/* ------ Debug Info ------ */
|
|
/* ------ Debug Info ------ */
|
|
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
|
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
|
- "In %s, Chan=%d Weight= %d rssiAgr=%d bssCount=%d",
|
|
|
|
|
|
+ "In %s, Chan=%d Weight= %d rssiAgr=%d rssi_pcl_discount: %d bssCount=%d",
|
|
__func__, pSpectCh->chNum, pSpectCh->weight,
|
|
__func__, pSpectCh->chNum, pSpectCh->weight,
|
|
- pSpectCh->rssiAgr, pSpectCh->bssCount);
|
|
|
|
|
|
+ pSpectCh->rssiAgr, rssi, pSpectCh->bssCount);
|
|
host_log_acs_chan_spect_weight(pSpectCh->chNum,
|
|
host_log_acs_chan_spect_weight(pSpectCh->chNum,
|
|
(uint16_t)pSpectCh->weight,
|
|
(uint16_t)pSpectCh->weight,
|
|
pSpectCh->rssiAgr,
|
|
pSpectCh->rssiAgr,
|