Jelajahi Sumber

qcacmn: Update comments in scm_req_update_concurrency_params

Update the commment sections in function
scm_req_update_concurrency_params and
wlan_util_get_mode_specific_peer_count.

Change-Id: I076beddacb6efa10f78a1d850f9b74886e9cdcdc
CRs-Fixed: 2439552
Bala Venkatesh 6 tahun lalu
induk
melakukan
2864718af8

+ 2 - 2
umac/cmn_services/utils/inc/wlan_utility.h

@@ -309,12 +309,12 @@ QDF_STATUS wlan_util_is_pdev_scan_allowed(struct wlan_objmgr_pdev *pdev,
 					  wlan_objmgr_ref_dbgid dbg_id);
 
 /**
- * wlan_util_get_mode_specific_peer_coun - This api gives vdev mode specific
+ * wlan_util_get_peer_count_for_mode - This api gives vdev mode specific
  * peer count`
  * @pdev: PDEV object
  * @mode: Operation mode.
  *
- * Return: int- peer count
+ * Return: int- peer count for operating mode
  */
 uint16_t wlan_util_get_peer_count_for_mode(struct wlan_objmgr_pdev *pdev,
 					   enum QDF_OPMODE mode);

+ 3 - 4
umac/cmn_services/utils/src/wlan_utility.c

@@ -547,10 +547,9 @@ uint16_t wlan_util_get_peer_count_for_mode(struct wlan_objmgr_pdev *pdev,
 
 	count.opmode = mode;
 	count.peer_count = 0;
-	wlan_objmgr_pdev_iterate_obj_list(pdev,
-					  WLAN_VDEV_OP,
-				wlan_util_get_mode_specific_peer_count,
-				&count, 0, WLAN_OBJMGR_ID);
+	wlan_objmgr_pdev_iterate_obj_list(pdev, WLAN_VDEV_OP,
+				wlan_util_get_mode_specific_peer_count, &count,
+				0, WLAN_OBJMGR_ID);
 
 	return count.peer_count;
 }

+ 3 - 3
umac/scan/core/src/wlan_scan_manager.c

@@ -611,9 +611,9 @@ static void scm_req_update_concurrency_params(struct wlan_objmgr_vdev *vdev,
 		req->scan_req.adaptive_dwell_time_mode =
 			scan_obj->scan_def.adaptive_dwell_time_mode_nc;
 	/*
-	 * If AP is active set min rest time same as max rest time, so that
-	 * firmware spends more time on home channel which will increase the
-	 * probability of sending beacon at TBTT
+	 * If AP/GO is active and has connected clients set min rest time
+	 * same as max rest time, so that firmware spends more time on home
+	 * channel which will increase the probability of sending beacon at TBTT
 	 */
 	if ((ap_present && sap_peer_count) ||
 	    (go_present && go_peer_count)) {