Browse Source

qcacmn: Fix qbss calculation in case of good RSSI threshold

Currently, when Current RSSI is better than good RSSI threshold
first driver calculates qbss percentage and set qbss score accordingly
and when current RSSI is weaker than or equal to good RSSI threshold
(-70dBm) driver directly sets 10% as qbss score. But as per requirement
Driver should calulate qbss percentage in order to set qbss score for
RSSI = -70db

Fix is to allow driver to ignore qbss percentag calculation only
when current RSSI is less than good RSSI threshold.

Change-Id: I1be2ab71016d779a60d21923a34340ae19d6c7f5
CRs-Fixed: 2261635
Abhinav Kumar 6 years ago
parent
commit
bfbf4422a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      umac/scan/core/src/wlan_scan_bss_score.c

+ 1 - 1
umac/scan/core/src/wlan_scan_bss_score.c

@@ -488,7 +488,7 @@ static int32_t scm_calculate_congestion_score(
 		score_params->rssi_score.good_rssi_threshold * (-1);
 
 	/* For bad zone rssi get score from last index */
-	if (entry->rssi_raw < good_rssi_threshold)
+	if (entry->rssi_raw <= good_rssi_threshold)
 		return scm_get_score_for_index(
 				score_params->esp_qbss_scoring.num_slot,
 				score_params->weight_cfg.