summaryrefslogtreecommitdiff
path: root/drivers/staging/rtlwifi/phydm/txbf/phydm_hal_txbf_api.h
blob: 278eb5d3bd4a2a0b4eab400ddfee9b8892d2f9b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2016  Realtek Corporation.
 *
 * Contact Information:
 * wlanfae <wlanfae@realtek.com>
 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
 * Hsinchu 300, Taiwan.
 *
 * Larry Finger <Larry.Finger@lwfinger.net>
 *
 *****************************************************************************/
#ifndef __PHYDM_HAL_TXBF_API_H__
#define __PHYDM_HAL_TXBF_API_H__

#define tx_bf_nr(a, b) ((a > b) ? (b) : (a))

u8 beamforming_get_htndp_tx_rate(void *dm_void, u8 comp_steering_num_of_bfer);

u8 beamforming_get_vht_ndp_tx_rate(void *dm_void, u8 comp_steering_num_of_bfer);

u8 phydm_get_beamforming_sounding_info(void *dm_void, u16 *troughput,
				       u8 total_bfee_num, u8 *tx_rate);

u8 phydm_get_ndpa_rate(void *dm_void);

u8 phydm_get_mu_bfee_snding_decision(void *dm_void, u16 throughput);

#endif