Files
android_kernel_samsung_sm86…/dp/inc/cdp_txrx_mscs.h
Jeff Johnson d18654812f qcacmn: Fix dp/inc documentation
The kernel-doc script identified a large number of kernel-doc issues
in the dp/inc folder, so fix them.

Change-Id: I6213164d2209cc4de9684ae66281ee2999f82672
CRs-Fixed: 3375078
2023-02-18 13:32:59 -08:00

60 wiersze
2.1 KiB
C

/*
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022-2023 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: cdp_txrx_mscs.h
* Define the host data path MSCS API functions
* called by the host control SW and the OS interface module
*/
#ifndef _CDP_TXRX_MSCS_H_
#define _CDP_TXRX_MSCS_H_
#include "cdp_txrx_handle.h"
#ifdef WLAN_SUPPORT_MSCS
/**
* cdp_mscs_peer_lookup_n_get_priority() - find MSCS enabled peer for this mac
* address and validate priority
* @soc: SoC handle
* @src_mac: source mac address of peer
* @dst_mac: destination mac address of peer
* @nbuf: nbuf pointer
*
* This function checks if there is a peer for this mac address with MSCS
* enabled flag set and nbuf priority is valid from user priority bitmap.
*
* Return: 0 for non error case, 1 for failure
*/
static inline int
cdp_mscs_peer_lookup_n_get_priority(ol_txrx_soc_handle soc,
uint8_t *src_mac, uint8_t *dst_mac,
qdf_nbuf_t nbuf)
{
if (!soc || !soc->ops || !soc->ops->mscs_ops) {
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
"%s invalid instance", __func__);
return 1;
}
if (soc->ops->mscs_ops->mscs_peer_lookup_n_get_priority)
return soc->ops->mscs_ops->mscs_peer_lookup_n_get_priority(soc,
src_mac, dst_mac, nbuf);
return 0;
}
#endif
#endif