ソースを参照

qcacmn: Rename peer create check to be MLD specific

Add change to rename peer create in MLO scenario to include MLO prefix
to void interpretation with generic peer create

Change-Id: I0ebf15964390275270e8b02d1e87df8532c63a0b
CRs-Fixed: 3075987
Santosh Anbu 3 年 前
コミット
1c97f0226b

+ 4 - 3
umac/mlme/vdev_mgr/dispatcher/inc/wlan_vdev_mlme_api.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2018-2019, 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
@@ -160,15 +161,15 @@ QDF_STATUS wlan_vdev_mlme_is_csa_restart(struct wlan_objmgr_vdev *vdev);
 QDF_STATUS wlan_vdev_is_going_down(struct wlan_objmgr_vdev *vdev);
 
 /**
- * wlan_vdev_is_peer_create_allowed() - Checks whether PEER can be created
+ * wlan_vdev_is_mlo_peer_create_allowed() - Checks whether PEER can be created
  * @vdev: Object manager VDEV object
  *
- * API to check the VDEV MLME SM state to allow PEER association
+ * API to check the VDEV MLME SM state to allow PEER association in MLD
  *
  * Return: SUCCESS: if peer create can be allowed
  *         FAILURE: otherwise failure
  */
-QDF_STATUS wlan_vdev_is_peer_create_allowed(struct wlan_objmgr_vdev *vdev);
+QDF_STATUS wlan_vdev_is_mlo_peer_create_allowed(struct wlan_objmgr_vdev *vdev);
 
 /**
  * wlan_vdev_is_restart_progress() - Checks VDEV restart is in progress

+ 1 - 1
umac/mlme/vdev_mgr/dispatcher/src/wlan_vdev_mlme_api.c

@@ -227,7 +227,7 @@ QDF_STATUS wlan_vdev_is_going_down(struct wlan_objmgr_vdev *vdev)
 	return QDF_STATUS_E_FAILURE;
 }
 
-QDF_STATUS wlan_vdev_is_peer_create_allowed(struct wlan_objmgr_vdev *vdev)
+QDF_STATUS wlan_vdev_is_mlo_peer_create_allowed(struct wlan_objmgr_vdev *vdev)
 {
 	enum wlan_vdev_state state;
 	enum wlan_vdev_state substate;

+ 1 - 1
umac/mlo_mgr/src/wlan_mlo_mgr_peer.c

@@ -720,7 +720,7 @@ QDF_STATUS wlan_mlo_peer_create(struct wlan_objmgr_vdev *vdev,
 				continue;
 			}
 
-			if (wlan_vdev_is_peer_create_allowed(vdev_link)
+			if (wlan_vdev_is_mlo_peer_create_allowed(vdev_link)
 					!= QDF_STATUS_SUCCESS) {
 				mlo_dev_release_link_vdevs(link_vdevs);
 				return QDF_STATUS_E_INVAL;