1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-23 05:44:40 +00:00
rtl8812au/hal/phydm/txbf/haltxbfinterface.h

168 lines
3.8 KiB
C
Raw Normal View History

2018-06-22 16:48:32 +00:00
/******************************************************************************
*
2018-08-24 20:52:34 +00:00
* Copyright(c) 2007 - 2017 Realtek Corporation.
2018-06-22 16:48:32 +00:00
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2018-08-24 20:52:34 +00:00
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
2018-06-22 16:48:32 +00:00
* more details.
*
2018-08-24 20:52:34 +00:00
* The full GNU General Public License is included in this distribution in the
* file called LICENSE.
*
* 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>
*
2018-06-22 16:48:32 +00:00
*****************************************************************************/
#ifndef __HAL_TXBF_INTERFACE_H__
#define __HAL_TXBF_INTERFACE_H__
2019-05-24 19:43:57 +00:00
#ifdef PHYDM_BEAMFORMING_SUPPORT
2018-06-22 16:48:32 +00:00
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
2019-05-24 19:43:57 +00:00
#define a_SifsTime ((IS_WIRELESS_MODE_5G(adapter) || IS_WIRELESS_MODE_N_24G(adapter)) ? 16 : 10)
2018-06-22 16:48:32 +00:00
2019-05-24 19:43:57 +00:00
void beamforming_gid_paid(
void *adapter,
PRT_TCB tcb);
2018-06-22 16:48:32 +00:00
enum rt_status
beamforming_get_report_frame(
2019-05-24 19:43:57 +00:00
void *adapter,
PRT_RFD rfd,
POCTET_STRING p_pdu_os);
2018-06-22 16:48:32 +00:00
2019-05-24 19:43:57 +00:00
void beamforming_get_ndpa_frame(
void *dm_void,
OCTET_STRING pdu_os);
2018-06-22 16:48:32 +00:00
boolean
send_fw_ht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
boolean
send_fw_vht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
u16 AID,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
boolean
send_sw_vht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
u16 AID,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
boolean
send_sw_ht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
#if (SUPPORT_MU_BF == 1)
enum rt_status
beamforming_get_vht_gid_mgnt_frame(
2019-05-24 19:43:57 +00:00
void *adapter,
PRT_RFD rfd,
POCTET_STRING p_pdu_os);
2018-06-22 16:48:32 +00:00
boolean
send_sw_vht_gid_mgnt_frame(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
u8 idx);
2018-06-22 16:48:32 +00:00
boolean
send_sw_vht_bf_report_poll(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
boolean is_final_poll);
2018-06-22 16:48:32 +00:00
boolean
send_sw_vht_mu_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
#else
2018-08-24 20:52:34 +00:00
#define beamforming_get_vht_gid_mgnt_frame(adapter, rfd, p_pdu_os) RT_STATUS_FAILURE
#define send_sw_vht_gid_mgnt_frame(dm_void, RA)
#define send_sw_vht_bf_report_poll(dm_void, RA, is_final_poll)
#define send_sw_vht_mu_ndpa_packet(dm_void, BW)
2018-06-22 16:48:32 +00:00
#endif
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
2019-05-24 19:43:57 +00:00
u32 beamforming_get_report_frame(
void *dm_void,
union recv_frame *precv_frame);
2018-06-22 16:48:32 +00:00
boolean
send_fw_ht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
boolean
send_sw_ht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
boolean
send_fw_vht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
u16 AID,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
boolean
send_sw_vht_ndpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
u8 *RA,
u16 AID,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
#endif
2019-05-24 19:43:57 +00:00
void beamforming_get_ndpa_frame(
void *dm_void,
2018-06-22 16:48:32 +00:00
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
2019-05-24 19:43:57 +00:00
OCTET_STRING pdu_os
2018-06-22 16:48:32 +00:00
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
union recv_frame *precv_frame
#endif
2019-05-24 19:43:57 +00:00
);
2018-06-22 16:48:32 +00:00
boolean
dbg_send_sw_vht_mundpa_packet(
2019-05-24 19:43:57 +00:00
void *dm_void,
enum channel_width BW);
2018-06-22 16:48:32 +00:00
#else
2018-08-24 20:52:34 +00:00
#define beamforming_get_ndpa_frame(dm, _pdu_os)
2018-06-22 16:48:32 +00:00
#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
2019-05-24 19:43:57 +00:00
#define beamforming_get_report_frame(adapter, precv_frame) RT_STATUS_FAILURE
2018-06-22 16:48:32 +00:00
#elif (DM_ODM_SUPPORT_TYPE == ODM_WIN)
2019-05-24 19:43:57 +00:00
#define beamforming_get_report_frame(adapter, rfd, p_pdu_os) RT_STATUS_FAILURE
#define beamforming_get_vht_gid_mgnt_frame(adapter, rfd, p_pdu_os) RT_STATUS_FAILURE
2018-06-22 16:48:32 +00:00
#endif
2018-08-24 20:52:34 +00:00
#define send_fw_ht_ndpa_packet(dm_void, RA, BW)
#define send_sw_ht_ndpa_packet(dm_void, RA, BW)
#define send_fw_vht_ndpa_packet(dm_void, RA, AID, BW)
2019-05-24 19:43:57 +00:00
#define send_sw_vht_ndpa_packet(dm_void, RA, AID, BW)
2018-08-24 20:52:34 +00:00
#define send_sw_vht_gid_mgnt_frame(dm_void, RA, idx)
#define send_sw_vht_bf_report_poll(dm_void, RA, is_final_poll)
#define send_sw_vht_mu_ndpa_packet(dm_void, BW)
2018-06-22 16:48:32 +00:00
#endif
#endif