diff --git a/umac/cmn_services/utils/inc/wlan_utility.h b/umac/cmn_services/utils/inc/wlan_utility.h index 19231cf63447..9428f217ec93 100644 --- a/umac/cmn_services/utils/inc/wlan_utility.h +++ b/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); diff --git a/umac/cmn_services/utils/src/wlan_utility.c b/umac/cmn_services/utils/src/wlan_utility.c index fac51d97934d..aeed7e8efc8a 100644 --- a/umac/cmn_services/utils/src/wlan_utility.c +++ b/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; } diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 93285c47b28e..4d8e1a807df9 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/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)) {