Quellcode durchsuchen

qcacmn: Give SAE-PK AP more score to pass SAE-5.7.3 certification

When do SAE-5.7.3 certification test case, STA will choose non SAE-PK
AP to connect which is wrong expected result, non SAE-PK AP beacon
will carry with QBSS IE that contributes more score than SAE-PK AP
score config.

Fix is to give SAE-PK AP more score to pass SAE-5.7.3 certification
case.

Change-Id: Ib3e516ccfa673e19f9bf0869aeffe4f5b1862a71
CRs-Fixed: 3101317
Huashan Qu vor 3 Jahren
Ursprung
Commit
0ff3ae8b94

+ 2 - 1
umac/mlme/connection_mgr/core/src/wlan_cm_bss_scoring.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 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
@@ -75,7 +76,7 @@
 #define CM_OCE_WAN_WEIGHTAGE 2
 #define CM_OCE_AP_TX_POWER_WEIGHTAGE 5
 #define CM_OCE_SUBNET_ID_WEIGHTAGE 3
-#define CM_SAE_PK_AP_WEIGHTAGE 3
+#define CM_SAE_PK_AP_WEIGHTAGE 30
 #define CM_BEST_CANDIDATE_MAX_WEIGHT 200
 #define CM_MAX_PCT_SCORE 100
 #define CM_MAX_INDEX_PER_INI 4

+ 5 - 4
umac/mlme/connection_mgr/dispatcher/inc/cfg_mlme_score_params.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 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
@@ -386,8 +387,8 @@
  * <ini>
  * sae_pk_ap_weightage - update scoring param based on SAE PK ap weightage
  * @Min: 0
- * @Max: 10
- * @Default: 3
+ * @Max: 30
+ * @Default: 30
  *
  * This ini is used to calculate SAE PK ap weightage in roam score. SAE Public
  * Key (SAE-PK) authentication is an extension of SAE that is intended for use
@@ -407,8 +408,8 @@
 #define CFG_SAE_PK_AP_WEIGHTAGE CFG_INI_UINT( \
 		"sae_pk_ap_weightage", \
 		0, \
-		10, \
-		PLATFORM_VALUE(3, 0), \
+		30, \
+		PLATFORM_VALUE(30, 0), \
 		CFG_VALUE_OR_DEFAULT,\
 		"SAE-PK AP weightage")