qcacmn: Add changes to notify userspace whenever T2LM updates

From the driver, call wlan_mlo_dev_t2lm_notify_link_update()
API whenever there is a link update happens using T2LM.

Change-Id: I51be6eafcb558bcf54919bead8c93227c33be194
CRs-Fixed: 3431540
This commit is contained in:
Deeksha Gupta
2023-03-14 02:57:41 +05:30
committad av Madan Koyyalamudi
förälder 82bd3d9009
incheckning 5bb13e5887
2 ändrade filer med 51 tillägg och 17 borttagningar

Visa fil

@@ -364,13 +364,14 @@ struct wlan_mlo_dev_context;
/**
* typedef wlan_mlo_t2lm_link_update_handler - T2LM handler API to notify the
* link update.
* @mldev: Pointer to mlo_dev_context
* @arg: ieee_link_map
* @vdev: Pointer to vdev context
* @t2lm: Pointer to wlan_t2lm_info
*
* Return: QDF_STATUS
*/
typedef QDF_STATUS (*wlan_mlo_t2lm_link_update_handler)(
struct wlan_mlo_dev_context *mldev, void *arg);
struct wlan_objmgr_vdev *vdev,
struct wlan_t2lm_info *t2lm);
/**
* struct wlan_t2lm_context - T2LM IE information
@@ -532,12 +533,14 @@ void wlan_unregister_t2lm_link_update_notify_handler(
/**
* wlan_mlo_dev_t2lm_notify_link_update() - API to call the registered handlers
* when there is a link update happens using T2LM
* @mldev: Pointer to mlo context
* @vdev: Pointer to vdev
* @t2lm: Pointer to T2LM info
*
* Return: QDF_STATUS
*/
QDF_STATUS wlan_mlo_dev_t2lm_notify_link_update(
struct wlan_mlo_dev_context *mldev);
struct wlan_objmgr_vdev *vdev,
struct wlan_t2lm_info *t2lm);
/**
* wlan_mlo_parse_t2lm_ie() - API to parse the T2LM IE
@@ -845,7 +848,8 @@ void wlan_unregister_t2lm_link_update_notify_handler(
}
static inline QDF_STATUS wlan_mlo_dev_t2lm_notify_link_update(
struct wlan_mlo_dev_context *mldev)
struct wlan_objmgr_vdev *vdev,
struct wlan_t2lm_info *t2lm)
{
return QDF_STATUS_SUCCESS;
}