qcacld-3.0: Limit STA connection in 80MHz BW for HE/VHT mode

Extend gStaPrefer80MHzOver160MHz ini to limit STA connection in
80MHz BW for HE/VHT mode. In case of XR use-case, higher
throughput is not needed but higher reliability is expected.
This ini helps in XR glass device to always connects in 80MHz.

Change-Id: Icefd2d54214351c04dd7420269c308cec2b5ae31
CRs-Fixed: 3117216
This commit is contained in:
Vishal Miskin
2022-01-21 15:05:21 +05:30
committed by Madan Koyyalamudi
parent ef9fbdbc23
commit 24af7b3137
3 changed files with 43 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 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 above
@@ -149,13 +150,14 @@
* <ini>
* gStaPrefer80MHzOver160MHz - set sta preference to connect in 80HZ/160HZ
* @Min: 0
* @Max: 1
* @Max: 2
* @Default: 0
*
* This ini is used to set sta preference to connect in 80HZ/160HZ
*
* 0 - Connects in 160MHz 1x1 when AP is 160MHz 2x2
* 1 - Connects in 80MHz 2x2 when AP is 160MHz 2x2
* 2 - Always Connects in 80MHz when AP is 160MHz
*
* Related: NA
*
@@ -165,9 +167,12 @@
*
* </ini>
*/
#define CFG_STA_PREFER_80MHZ_OVER_160MHZ CFG_INI_BOOL( \
#define CFG_STA_PREFER_80MHZ_OVER_160MHZ CFG_INI_UINT( \
"gStaPrefer80MHzOver160MHz", \
0, \
2, \
0, \
CFG_VALUE_OR_DEFAULT, \
"Sta preference to connect in 80HZ/160HZ")
/*