Browse Source

qcacld-3.0: Init channel load and statistics rrm caps

During rrm_initialize () set RRM cap for Channel Load
and statistics to enable by default. Same rrm capabilities
driver sends to AP in association request during connection.

Change-Id: I3a9d87b8bd8b28b84ccc3578fff2ad1c7ebd8a6e
CRs-Fixed: 3609838
Abhinav Kumar 1 year ago
parent
commit
49c7a74dbf
2 changed files with 5 additions and 2 deletions
  1. 3 2
      components/mlme/dispatcher/inc/cfg_mlme_fe_rrm.h
  2. 2 0
      core/mac/src/pe/rrm/rrm_api.c

+ 3 - 2
components/mlme/dispatcher/inc/cfg_mlme_fe_rrm.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2012-2018, 2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -96,7 +97,7 @@
 /*
  * <ini>
  * rm_capability - Configure RM enabled capabilities IE
- * @Default: 0x73,0x10,0x91,0x00,0x04
+ * @Default: 0x73,0x1A,0x91,0x00,0x04
  *
  * This ini is used to configure RM enabled capabilities IE.
  * Using this INI, we can set/unset any of the bits in 5 bytes
@@ -117,7 +118,7 @@
 #define CFG_RM_CAPABILITY CFG_INI_STRING("rm_capability", \
 					 24, \
 					 40, \
-					 "0x73,0x10,0x91,0x00,0x04", \
+					 "0x73,0x1A,0x91,0x00,0x04", \
 					 "RM enabled capabilities IE")
 
 #define CFG_FE_RRM_ALL \

+ 2 - 0
core/mac/src/pe/rrm/rrm_api.c

@@ -2618,6 +2618,8 @@ QDF_STATUS rrm_initialize(struct mac_context *mac)
 	pRRMCaps->APChanReport = 1;
 	pRRMCaps->fine_time_meas_rpt = 1;
 	pRRMCaps->lci_capability = 1;
+	pRRMCaps->ChannelLoad = 1;
+	pRRMCaps->statistics = 1;
 
 	pRRMCaps->operatingChanMax = 3;
 	pRRMCaps->nonOperatingChanMax = 3;