qcacmn: move MLO related common definitions to umac
WMI includes are not part of include path in some WIN projects, move MLO related common definitions to wlan_mlo_mgr_public_structs.h. Change-Id: If63c82bc15a2a0e0a045be896b74ea9addb3a64d CRs-Fixed: 3083776
This commit is contained in:

committed by
Madan Koyyalamudi

parent
a9ed2d6a47
commit
2cec5acc85
@@ -1,6 +1,7 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 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
|
||||
@@ -18,6 +19,8 @@
|
||||
#ifndef _WMI_UNIFIED_11BE_PARAM_H_
|
||||
#define _WMI_UNIFIED_11BE_PARAM_H_
|
||||
|
||||
#include <wmi_unified_param.h>
|
||||
|
||||
#ifdef WLAN_FEATURE_11BE_MLO
|
||||
|
||||
#define MAX_LINK_IN_MLO 6
|
||||
@@ -95,96 +98,5 @@ struct wmi_mlo_teardown_cmpl_params {
|
||||
uint32_t pdev_id;
|
||||
enum wmi_mlo_teardown_status status;
|
||||
};
|
||||
|
||||
/* maximum size of vdev bitmap array for MLO link set active command */
|
||||
#define WMI_MLO_VDEV_BITMAP_SZ 2
|
||||
|
||||
/* maximum size of link number param array for MLO link set active command */
|
||||
#define WMI_MLO_LINK_NUM_SZ 2
|
||||
|
||||
/**
|
||||
* enum wmi_mlo_link_force_mode: MLO link force modes
|
||||
* @WMI_MLO_LINK_FORCE_MODE_ACTIVE:
|
||||
* Force specific links active
|
||||
* @WMI_MLO_LINK_FORCE_MODE_INACTIVE:
|
||||
* Force specific links inactive
|
||||
* @WMI_MLO_LINK_FORCE_MODE_ACTIVE_NUM:
|
||||
* Force active a number of links, firmware to decide which links to inactive
|
||||
* @WMI_MLO_LINK_FORCE_MODE_INACTIVE_NUM:
|
||||
* Force inactive a number of links, firmware to decide which links to inactive
|
||||
* @WMI_MLO_LINK_FORCE_MODE_NO_FORCE:
|
||||
* Cancel the force operation of specific links, allow firmware to decide
|
||||
*/
|
||||
enum wmi_mlo_link_force_mode {
|
||||
WMI_MLO_LINK_FORCE_MODE_ACTIVE = 1,
|
||||
WMI_MLO_LINK_FORCE_MODE_INACTIVE = 2,
|
||||
WMI_MLO_LINK_FORCE_MODE_ACTIVE_NUM = 3,
|
||||
WMI_MLO_LINK_FORCE_MODE_INACTIVE_NUM = 4,
|
||||
WMI_MLO_LINK_FORCE_MODE_NO_FORCE = 5,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum wmi_mlo_link_force_reason: MLO link force reasons
|
||||
* @WMI_MLO_LINK_FORCE_REASON_CONNECT:
|
||||
* Set force specific links because of new connection
|
||||
* @WMI_MLO_LINK_FORCE_REASON_DISCONNECT:
|
||||
* Set force specific links because of new dis-connection
|
||||
*/
|
||||
enum wmi_mlo_link_force_reason {
|
||||
WMI_MLO_LINK_FORCE_REASON_CONNECT = 1,
|
||||
WMI_MLO_LINK_FORCE_REASON_DISCONNECT = 2,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_mlo_link_set_active_resp: MLO link set active response structure
|
||||
* @status: Return status, 0 for success, non-zero otherwise
|
||||
* @active_sz: size of current active vdev bitmap array
|
||||
* @active: current active vdev bitmap array
|
||||
* @inactive_sz: size of current inactive vdev bitmap array
|
||||
* @inactive: current inactive vdev bitmap array
|
||||
*/
|
||||
struct wmi_mlo_link_set_active_resp {
|
||||
uint32_t status;
|
||||
uint32_t active_sz;
|
||||
uint32_t active[WMI_MLO_VDEV_BITMAP_SZ];
|
||||
uint32_t inactive_sz;
|
||||
uint32_t inactive[WMI_MLO_VDEV_BITMAP_SZ];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_mlo_link_num_param: MLO link set active number params
|
||||
* @num_of_link: number of links to active/inactive
|
||||
* @vdev_type: type of vdev
|
||||
* @vdev_subtype: subtype of vdev
|
||||
* @home_freq: home frequency of the link
|
||||
*/
|
||||
struct wmi_mlo_link_num_param {
|
||||
uint32_t num_of_link;
|
||||
uint32_t vdev_type;
|
||||
uint32_t vdev_subtype;
|
||||
uint32_t home_freq;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_mlo_link_set_active_param: MLO link set active params
|
||||
* @force_mode: operation to take (enum wmi_mlo_link_force_mode)
|
||||
* @reason: reason for the operation (enum wmi_mlo_link_force_reason)
|
||||
* @entry_num: number of the valid entries for link_num/vdev_bitmap
|
||||
* @link_num: link number param array
|
||||
* It's present only when force_mode is WMI_MLO_LINK_FORCE_MODE_ACTIVE_NUM or
|
||||
* WMI_MLO_LINK_FORCE_MODE_INACTIVE_NUM
|
||||
* @vdev_bitmap: active/inactive vdev bitmap array
|
||||
* It's present only when force_mode is WMI_MLO_LINK_FORCE_MODE_ACTIVE,
|
||||
* WMI_MLO_LINK_FORCE_MODE_INACTIVE or WMI_MLO_LINK_FORCE_MODE_NO_FORCE.
|
||||
*/
|
||||
struct wmi_mlo_link_set_active_param {
|
||||
uint32_t force_mode;
|
||||
uint32_t reason;
|
||||
uint32_t entry_num;
|
||||
union {
|
||||
struct wmi_mlo_link_num_param link_num[WMI_MLO_LINK_NUM_SZ];
|
||||
uint32_t vdev_bitmap[WMI_MLO_VDEV_BITMAP_SZ];
|
||||
};
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user