qcacld-3.0: Restrict three link connection on certain vendor APs

Identify APs which don't support three links and downgrade the
max connection links to two so that connecting to such APs will
not lead to unexpected behavior.

Change-Id: I25d2c0fd09e29b6f0cc2d228e52733bcbceb39fd
CRs-Fixed: 3636112
This commit is contained in:
Vinod Kumar Pirla
2023-10-13 03:47:06 -07:00
committed by Ravindra Konda
vanhempi 2e6d28ea61
commit 0b6df7dbe9
5 muutettua tiedostoa jossa 80 lisäystä ja 11 poistoa

Näytä tiedosto

@@ -844,6 +844,36 @@
"", \
"Used to send SMPS frame along with OMN for specified APs")
/*
* <ini>
* gActionOUIRestrictMaxMLOLinks - Used to downgrade 3 link to 2 link ML
* connection for specific AP build version.
*
* Sample OUIs: (All values in Hex)
* OUI 3 : 8CFDF0
* OUI data Len : 13
* OUI Data : 040000494c510302097201cb17000009110000
* OUI data Mask: FFFFE0 - 1111 1111 1111 1111 1110 0000
* Info Mask : 01 - only OUI present in Info mask
*
* gActionOUIRestrictMaxMLOLinks=8CFDF0 13 040000494c510c00203000cb17000009110000 FFFFE0 01
* Refer to gEnableActionOUI for more detail about the format.
*
* Related: gEnableActionOUI
*
* Supported Feature: Action OUIs
*
* Usage: External
*
* </ini>
*/
#define CFG_ACTION_OUI_RESTRICT_MAX_MLO_LINKS CFG_INI_STRING( \
"gActionOUIRestrictMaxMLOLinks", \
0, \
ACTION_OUI_MAX_STR_LEN, \
"8CFDF0 13 040000494c510302097201cb17000009110000 FFFFE0 01", \
"To restrict matching OUI APs to two link connection at max")
#define CFG_ACTION_OUI \
CFG(CFG_ACTION_OUI_CCKM_1X1) \
CFG(CFG_ACTION_OUI_CONNECT_1X1) \
@@ -861,6 +891,7 @@
CFG(CFG_ACTION_OUI_DISABLE_DYNAMIC_QOS_NULL_TX_RATE) \
CFG(CFG_ACTION_OUI_ENABLE_CTS2SELF) \
CFG(CFG_ACTION_OUI_ENABLE_CTS2SELF_WITH_QOS_NULL) \
CFG(CFG_ACTION_OUI_RESTRICT_MAX_MLO_LINKS) \
CFG(CFG_ACTION_OUI_SEND_SMPS_FRAME_WITH_OMN) \
CFG(CFG_ACTION_OUI_AUTH_ASSOC_6MBPS_2GHZ) \
CFG(CFG_ACTION_OUI_DISABLE_BFORMEE) \

Näytä tiedosto

@@ -125,6 +125,8 @@
* @ACTION_OUI_DISABLE_BFORMEE: disable SU/MU beam formee capability for
* specified AP
* @ACTION_OUI_ENABLE_CTS2SELF: enable cts to self for specified AP's
* @ACTION_OUI_RESTRICT_MAX_MLO_LINKS: Downgrade MLO if particular AP
* build present.
* @ACTION_OUI_MAXIMUM_ID: maximum number of action oui types
*/
enum action_oui_id {
@@ -150,6 +152,7 @@ enum action_oui_id {
ACTION_OUI_DISABLE_BFORMEE,
ACTION_OUI_DISABLE_AGGRESSIVE_EDCA,
ACTION_OUI_ENABLE_CTS2SELF,
ACTION_OUI_RESTRICT_MAX_MLO_LINKS,
ACTION_OUI_MAXIMUM_ID
};