Files
android_kernel_samsung_sm86…/umac/mlo_mgr/inc/utils_mlo.h
Amruta Kulkarni f6032d1c4a qcacmn: Generate Link Specific Assoc Response
Generate link specific association response for
MLO partner links.

CRs-Fixed: 2970626
Change-Id: I48520290c09f48ce356d166e1cd2ef24938e8fb2
2021-08-03 06:55:23 -07:00

54 lines
1.7 KiB
C

/*
* Copyright (c) 2021, The Linux Foundation. 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 containing util public api's
*/
#ifndef _WLAN_UTILS_MLO_H_
#define _WLAN_UTILS_MLO_H_
#include "wlan_mlo_mgr_public_structs.h"
#include <wlan_cm_ucfg_api.h>
#include <wlan_objmgr_vdev_obj.h>
#ifdef WLAN_FEATURE_11BE_MLO
#define FC0_IEEE_MGMT_FRM 0x10
#define FC1_IEEE_MGMT_FRM 0x00
/**
* util_gen_link_assoc_rsp - Generate link association response
*
* @frame: association response frame ptr
* @len: length of assoc rsp frame
* @link_addr: link mac addr
* @new_ie: Generated Link assoc rsp
*
* Return: true if vdev is a link vdev, false otherwise
*/
QDF_STATUS
util_gen_link_assoc_rsp(uint8_t *frame, qdf_size_t len,
struct qdf_mac_addr link_addr, uint8_t *new_ie);
#else
static inline QDF_STATUS
util_gen_link_assoc_rsp(uint8_t *frame, qdf_size_t len,
struct qdf_mac_addr link_addr, uint8_t *new_ie)
{
return QDF_STATUS_E_NOSUPPORT;
}
#endif
#endif