1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * 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
|