qcacld-3.0: Add new files for mlo roaming
Add new files for mlo roaming and update Kbuild file. Change-Id: I3e672a5e068648fd836ecccb0edbac084850f11d CRs-Fixed: 3090925
This commit is contained in:

committed by
Madan Koyyalamudi

parent
5becebe02d
commit
a32e3f1a0c
6
Kbuild
6
Kbuild
@@ -1277,6 +1277,9 @@ $(call add-wlan-objs,umac_ifmgr,$(UMAC_INTERFACE_MGR_OBJS))
|
||||
UMAC_MLO_MGR_CMN_DIR := $(WLAN_COMMON_ROOT)/umac/mlo_mgr
|
||||
MLO_MGR_TARGET_IF_DIR := $(WLAN_COMMON_ROOT)/target_if/mlo_mgr
|
||||
|
||||
UMAC_MLO_MGR_CLD_DIR := components/umac/mlme/mlo_mgr
|
||||
UMAC_MLO_MGR_CLD_INC := -I$(WLAN_ROOT)/$(UMAC_MLO_MGR_CLD_DIR)/inc \
|
||||
|
||||
UMAC_MLO_MGR_INC := -I$(WLAN_COMMON_INC)/umac/mlo_mgr/inc \
|
||||
-I$(WLAN_COMMON_INC)/target_if/mlo_mgr/inc
|
||||
|
||||
@@ -1291,7 +1294,8 @@ UMAC_MLO_MGR_OBJS := $(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_main.o \
|
||||
$(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_peer.o \
|
||||
$(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_msgq.o \
|
||||
$(UMAC_MLO_MGR_CMN_DIR)/src/wlan_mlo_mgr_primary_umac.o \
|
||||
$(MLO_MGR_TARGET_IF_DIR)/src/target_if_mlo_mgr.o
|
||||
$(MLO_MGR_TARGET_IF_DIR)/src/target_if_mlo_mgr.o \
|
||||
$(UMAC_MLO_MGR_CLD_DIR)/src/wlan_mlo_mgr_roam.o
|
||||
|
||||
$(call add-wlan-objs,umac_mlomgr,$(UMAC_MLO_MGR_OBJS))
|
||||
endif
|
||||
|
107
components/umac/mlme/mlo_mgr/inc/wlan_mlo_mgr_roam.h
Normal file
107
components/umac/mlme/mlo_mgr/inc/wlan_mlo_mgr_roam.h
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* DOC: contains MLO manager public file containing roaming functionality
|
||||
*/
|
||||
#ifndef _WLAN_MLO_MGR_ROAM_H_
|
||||
#define _WLAN_MLO_MGR_ROAM_H_
|
||||
|
||||
#include <wlan_mlo_mgr_cmn.h>
|
||||
#include <wlan_mlo_mgr_public_structs.h>
|
||||
#include <wlan_cm_roam_public_struct.h>
|
||||
|
||||
#ifdef WLAN_FEATURE_11BE_MLO
|
||||
/**
|
||||
* mlo_fw_roam_sync_req - Handler for roam sync event handling
|
||||
*
|
||||
* @psoc: psoc pointer
|
||||
* @vdev_id: vdev id
|
||||
* @event: event ptr
|
||||
* @event_data_len: event data len
|
||||
*
|
||||
* This api will be called from target_if layer to mlo mgr,
|
||||
* handles mlo roaming and posts roam sync propagation to
|
||||
* connection manager state machine.
|
||||
*
|
||||
* Return: qdf status
|
||||
*/
|
||||
QDF_STATUS mlo_fw_roam_sync_req(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id, void *event,
|
||||
uint32_t event_data_len);
|
||||
|
||||
/**
|
||||
* mlo_fw_ho_fail_req - Handler for HO fail event handling
|
||||
*
|
||||
* @psoc: psoc pointer
|
||||
* @vdev_id: vdev id
|
||||
* @bssid: bssid mac addr
|
||||
*
|
||||
* This api will be called from target_if layer to mlo mgr,
|
||||
* handles mlo ho fail req and posts to connection manager
|
||||
* state machine.
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
void
|
||||
mlo_fw_ho_fail_req(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id, struct qdf_mac_addr bssid);
|
||||
|
||||
/**
|
||||
* mlo_get_sta_link_mac_addr - get sta link mac addr
|
||||
*
|
||||
* @vdev_id: vdev id
|
||||
* @sync_ind: roam sync ind pointer
|
||||
* @link_mac_addr: link mac addr pointer
|
||||
*
|
||||
* This api will be called to get the link specific mac address.
|
||||
*
|
||||
* Return: qdf status
|
||||
*/
|
||||
QDF_STATUS
|
||||
mlo_get_sta_link_mac_addr(uint8_t vdev_id,
|
||||
struct roam_offload_synch_ind *sync_ind,
|
||||
struct qdf_mac_addr *link_mac_addr);
|
||||
|
||||
/**
|
||||
* is_multi_link_roam - check if MLO roaming
|
||||
*
|
||||
* @sync_ind: roam sync ind pointer
|
||||
*
|
||||
* This api will be called to check if MLO roaming.
|
||||
*
|
||||
* Return: true/false
|
||||
*/
|
||||
bool
|
||||
is_multi_link_roam(struct roam_offload_synch_ind *sync_ind);
|
||||
|
||||
#else
|
||||
static inline QDF_STATUS
|
||||
mlo_get_sta_link_mac_addr(uint8_t vdev_id,
|
||||
struct roam_offload_synch_ind *sync_ind,
|
||||
struct qdf_mac_addr *link_mac_addr)
|
||||
{
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
is_multi_link_roam(struct roam_offload_synch_ind *sync_ind)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* WLAN_FEATURE_11BE_MLO */
|
||||
#endif
|
71
components/umac/mlme/mlo_mgr/src/wlan_mlo_mgr_roam.c
Normal file
71
components/umac/mlme/mlo_mgr/src/wlan_mlo_mgr_roam.c
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
* DOC: contains MLO manager roaming related functionality
|
||||
*/
|
||||
#include <wlan_cmn.h>
|
||||
#include <wlan_cm_public_struct.h>
|
||||
#include <wlan_cm_roam_public_struct.h>
|
||||
#include "wlan_mlo_mgr_cmn.h"
|
||||
#include "wlan_mlo_mgr_main.h"
|
||||
#include "wlan_mlo_mgr_roam.h"
|
||||
#include "wlan_mlo_mgr_public_structs.h"
|
||||
#include "wlan_mlo_mgr_sta.h"
|
||||
#include <../../core/src/wlan_cm_roam_i.h>
|
||||
#include "wlan_cm_roam_api.h"
|
||||
|
||||
QDF_STATUS mlo_fw_roam_sync_req(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id,
|
||||
void *event, uint32_t event_data_len)
|
||||
{
|
||||
struct roam_offload_synch_ind *sync_ind;
|
||||
|
||||
sync_ind = (struct roam_offload_synch_ind *)event;
|
||||
if (!sync_ind)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
mlo_fw_ho_fail_req(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id, struct qdf_mac_addr bssid)
|
||||
{
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
mlo_get_sta_link_mac_addr(uint8_t vdev_id,
|
||||
struct roam_offload_synch_ind *sync_ind,
|
||||
struct qdf_mac_addr *link_mac_addr)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
if (!sync_ind || !sync_ind->num_setup_links)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
bool is_multi_link_roam(struct roam_offload_synch_ind *sync_ind)
|
||||
{
|
||||
if (!sync_ind)
|
||||
return false;
|
||||
|
||||
if (sync_ind->num_setup_links)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user