Browse Source

qcacmn: Move wlan_mlo_t2lm_register_link_update_notify_handler() under WIN

Register TTLM notify API()
wlan_mlo_t2lm_register_link_update_notify_handler()
only for WIN.
For MCC, call wlan_register_t2lm_link_update_notify_handler()
to register the MCC handlers to receive link update
notification.

CRs-Fixed: 3764848
Change-Id: Iadf06a0879213d84753f2114b6c5fd4cfa1b8618
Deeksha Gupta 1 year ago
parent
commit
a341ed26d8
2 changed files with 10 additions and 0 deletions
  1. 8 0
      umac/mlo_mgr/inc/wlan_mlo_t2lm.h
  2. 2 0
      umac/mlo_mgr/src/wlan_mlo_t2lm.c

+ 8 - 0
umac/mlo_mgr/inc/wlan_mlo_t2lm.h

@@ -712,6 +712,7 @@ wlan_mlo_t2lm_timer_expiry_handler(void *vdev);
 QDF_STATUS
 wlan_handle_t2lm_timer(struct wlan_objmgr_vdev *vdev);
 
+#ifndef WLAN_FEATURE_11BE_MLO_ADV_FEATURE
 /**
  * wlan_mlo_t2lm_register_link_update_notify_handler() - API to register a T2LM
  * callback that needs to be invoked on mapping switch time expiry and expected
@@ -722,6 +723,13 @@ wlan_handle_t2lm_timer(struct wlan_objmgr_vdev *vdev);
  */
 QDF_STATUS wlan_mlo_t2lm_register_link_update_notify_handler(
 		struct wlan_mlo_dev_context *ml_dev);
+#else
+static inline QDF_STATUS
+wlan_mlo_t2lm_register_link_update_notify_handler(struct wlan_mlo_dev_context *ml_dev)
+{
+	return QDF_STATUS_SUCCESS;
+}
+#endif
 
 /**
  * wlan_process_bcn_prbrsp_t2lm_ie() - API to process the received T2LM IE from

+ 2 - 0
umac/mlo_mgr/src/wlan_mlo_t2lm.c

@@ -1109,6 +1109,7 @@ void wlan_mlo_t2lm_timer_expiry_handler(void *vdev)
 
 }
 
+#ifndef WLAN_FEATURE_11BE_MLO_ADV_FEATURE
 /**
  * wlan_mlo_t2lm_update_peer_to_peer_negotiation() - API to update peer-to-peer
  * level T2LM negotiation data structure on mapping switch time expiry and
@@ -1190,6 +1191,7 @@ QDF_STATUS wlan_mlo_t2lm_register_link_update_notify_handler(
 
 	return QDF_STATUS_SUCCESS;
 }
+#endif
 
 QDF_STATUS
 wlan_mlo_t2lm_timer_init(struct wlan_objmgr_vdev *vdev)