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

190 lines
3.9 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__
#if (BEAMFORMING_SUPPORT == 1)
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
#define a_SifsTime ((IS_WIRELESS_MODE_5G(adapter)|| IS_WIRELESS_MODE_N_24G(adapter))? 16 : 10)
void
beamforming_gid_paid(
2018-08-24 20:52:34 +00:00
void *adapter,
PRT_TCB tcb
2018-06-22 16:48:32 +00:00
);
enum rt_status
beamforming_get_report_frame(
2018-08-24 20:52:34 +00:00
void *adapter,
PRT_RFD rfd,
2018-06-22 16:48:32 +00:00
POCTET_STRING p_pdu_os
);
void
beamforming_get_ndpa_frame(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
OCTET_STRING pdu_os
);
boolean
send_fw_ht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
enum channel_width BW
);
boolean
send_fw_vht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
u16 AID,
enum channel_width BW
);
boolean
send_sw_vht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
u16 AID,
enum channel_width BW
);
boolean
send_sw_ht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
enum channel_width BW
);
#if (SUPPORT_MU_BF == 1)
enum rt_status
beamforming_get_vht_gid_mgnt_frame(
2018-08-24 20:52:34 +00:00
void *adapter,
PRT_RFD rfd,
2018-06-22 16:48:32 +00:00
POCTET_STRING p_pdu_os
);
boolean
send_sw_vht_gid_mgnt_frame(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
u8 idx
);
boolean
send_sw_vht_bf_report_poll(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
boolean is_final_poll
);
boolean
send_sw_vht_mu_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
enum channel_width BW
);
#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)
u32
beamforming_get_report_frame(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
union recv_frame *precv_frame
);
boolean
send_fw_ht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
enum channel_width BW
);
boolean
send_sw_ht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
enum channel_width BW
);
boolean
send_fw_vht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
u16 AID,
enum channel_width BW
);
boolean
send_sw_vht_ndpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
u8 *RA,
u16 AID,
enum channel_width BW
);
#endif
void
beamforming_get_ndpa_frame(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
OCTET_STRING pdu_os
#elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
union recv_frame *precv_frame
#endif
);
boolean
dbg_send_sw_vht_mundpa_packet(
2018-08-24 20:52:34 +00:00
void *dm_void,
2018-06-22 16:48:32 +00:00
enum channel_width BW
);
#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)
#define beamforming_get_report_frame(adapter, precv_frame) RT_STATUS_FAILURE
#elif (DM_ODM_SUPPORT_TYPE == ODM_WIN)
2018-08-24 20:52:34 +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)
#define send_sw_vht_ndpa_packet(dm_void, RA, AID, BW)
#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