Bläddra i källkod

qcacmn: Fix unused params in 6Ghz security check APIs

Remove few unused params in 6Ghz security check APIs.

Change-Id: I2b88b72d18145d7b537520c30e499ba40c86f5f3
CRs-Fixed: 2820363
gaurank kathpalia 4 år sedan
förälder
incheckning
7a2fd984a7

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

@@ -1825,8 +1825,7 @@ void wlan_cm_set_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
 	mlme_psoc_obj->psoc_cfg.score_config.check_6ghz_security = value;
 }
 
-void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
-				       bool value)
+void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc)
 {
 	struct psoc_mlme_obj *mlme_psoc_obj;
 
@@ -1835,7 +1834,7 @@ void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
 		return;
 
 	mlme_psoc_obj->psoc_cfg.score_config.check_6ghz_security =
-					cfg_get(psoc ,CFG_CHECK_6GHZ_SECURITY);
+					cfg_get(psoc, CFG_CHECK_6GHZ_SECURITY);
 }
 
 bool wlan_cm_get_check_6ghz_security(struct wlan_objmgr_psoc *psoc)

+ 0 - 3
umac/mlme/connection_mgr/core/src/wlan_cm_connect.c

@@ -743,9 +743,6 @@ static void cm_connect_prepare_scan_filter(struct wlan_objmgr_pdev *pdev,
 					   struct scan_filter *filter,
 					   bool security_valid_for_6ghz)
 {
-	struct wlan_objmgr_psoc *psoc;
-
-	psoc = wlan_pdev_get_psoc(pdev);
 	if (!qdf_is_macaddr_zero(&cm_req->req.bssid)) {
 		filter->num_of_bssid = 1;
 		qdf_copy_macaddr(&filter->bssid_list[0], &cm_req->req.bssid);

+ 2 - 5
umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_bss_score_param.h

@@ -249,12 +249,10 @@ void wlan_cm_set_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
  * wlan_cm_reset_check_6ghz_security() - reset check 6Ghz security to orignal
  * value
  * @psoc: pointer to psoc object
- * @value: value to be set
  *
  * Return: void
  */
-void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
-				     bool value);
+void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc);
 
 /**
  * wlan_cm_get_check_6ghz_security() - Get 6Ghz allowe AKM mask
@@ -296,8 +294,7 @@ void wlan_cm_set_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
 				     bool value) {}
 
 static inline
-void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc,
-				        bool value) {}
+void wlan_cm_reset_check_6ghz_security(struct wlan_objmgr_psoc *psoc) {}
 
 static inline
 bool wlan_cm_get_check_6ghz_security(struct wlan_objmgr_psoc *psoc)