static u8 LINKSYS_MARVELL_4400N[3] = {0x00, 0x14, 0xa4};
void HTUpdateDefaultSetting(struct rtllib_device* ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
pHTInfo->bAcceptAddbaReq = 1;
bool IsHTHalfNmode40Bandwidth(struct rtllib_device* ieee)
{
bool retValue = false;
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
if (pHTInfo->bCurrentHTSupport == false )
retValue = false;
bool IsHTHalfNmodeSGI(struct rtllib_device* ieee, bool is40MHz)
{
bool retValue = false;
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
if (pHTInfo->bCurrentHTSupport == false )
retValue = false;
u16 HTMcsToDataRate( struct rtllib_device* ieee, u8 nMcsRate)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
u8 is40MHz = (pHTInfo->bCurBW40MHz)?1:0;
u8 isShortGI = (pHTInfo->bCurBW40MHz)?
void HTIOTPeerDetermine(struct rtllib_device* ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
struct rtllib_network* net = &ieee->current_network;
if (net->bssht.bdRT2RTAggregation){
pHTInfo->IOTPeer = HT_IOT_PEER_REALTEK;
u8
HTIOTActWAIOTBroadcom(struct rtllib_device* ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
u8 retValue = false;
u8 boundary=59;
HTIOTActDisableShortGI(struct rtllib_device* ieee,struct rtllib_network *network)
{
u8 retValue = 0;
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
if (pHTInfo->IOTPeer==HT_IOT_PEER_RALINK)
{
void
HTIOTActDetermineRaFunc(struct rtllib_device* ieee, bool bPeerRx2ss)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
pHTInfo->IOTRaFunc &= HT_IOT_RAFUNC_DISABLE_ALL;
if (pHTInfo->IOTPeer == HT_IOT_PEER_RALINK && !bPeerRx2ss)
}
void HTResetIOTSetting(
- PRT_HIGH_THROUGHPUT pHTInfo
+ struct rt_hi_throughput *pHTInfo
)
{
pHTInfo->IOTAction = 0;
void HTConstructCapabilityElement(struct rtllib_device* ieee, u8* posHTCap, u8* len, u8 IsEncrypt, bool bAssoc)
{
- PRT_HIGH_THROUGHPUT pHT = ieee->pHTInfo;
+ struct rt_hi_throughput *pHT = ieee->pHTInfo;
PHT_CAPABILITY_ELE pCapELE = NULL;
if ((posHTCap == NULL) || (pHT == NULL))
}
void HTConstructInfoElement(struct rtllib_device* ieee, u8* posHTInfo, u8* len, u8 IsEncrypt)
{
- PRT_HIGH_THROUGHPUT pHT = ieee->pHTInfo;
+ struct rt_hi_throughput *pHT = ieee->pHTInfo;
PHT_INFORMATION_ELE pHTInfoEle = (PHT_INFORMATION_ELE)posHTInfo;
if ((posHTInfo == NULL) || (pHTInfoEle == NULL))
{
void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset);
void HTOnAssocRsp(struct rtllib_device *ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
PHT_CAPABILITY_ELE pPeerHTCap = NULL;
PHT_INFORMATION_ELE pPeerHTInfo = NULL;
u16 nMaxAMSDUSize = 0;
void HTSetConnectBwModeCallback(struct rtllib_device* ieee);
void HTInitializeHTInfo(struct rtllib_device* ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
RTLLIB_DEBUG(RTLLIB_DL_HT, "===========>%s()\n", __func__);
pHTInfo->bCurrentHTSupport = false;
void HTResetSelfAndSavePeerSetting(struct rtllib_device* ieee, struct rtllib_network * pNetwork)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
u8 bIOTAction = 0;
RTLLIB_DEBUG(RTLLIB_DL_HT, "==============>%s()\n", __func__);
void HTUpdateSelfAndPeerSetting(struct rtllib_device* ieee, struct rtllib_network * pNetwork)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
PHT_INFORMATION_ELE pPeerHTInfo = (PHT_INFORMATION_ELE)pNetwork->bssht.bdHTInfoBuf;
if (pHTInfo->bCurrentHTSupport)
void HTUseDefaultSetting(struct rtllib_device* ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
if (pHTInfo->bEnableHT) {
pHTInfo->bCurrentHTSupport = true;
void HTSetConnectBwMode(struct rtllib_device* ieee, HT_CHANNEL_WIDTH Bandwidth, HT_EXTCHNL_OFFSET Offset)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
if (pHTInfo->bRegBW40MHz == false)
return;
void HTSetConnectBwModeCallback(struct rtllib_device* ieee)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
RTLLIB_DEBUG(RTLLIB_DL_HT, "======>%s()\n", __func__);
if (pHTInfo->bCurBW40MHz)
static void dm_check_rate_adaptive(struct net_device * dev)
{
struct r8192_priv *priv = rtllib_priv(dev);
- PRT_HIGH_THROUGHPUT pHTInfo = priv->rtllib->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
prate_adaptive pra = (prate_adaptive)&priv->rate_adaptive;
u32 currentRATR, targetRATR = 0;
u32 LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0;
struct net_device * dev)
{
struct r8192_priv *priv = rtllib_priv(dev);
- PRT_HIGH_THROUGHPUT pHTInfo = priv->rtllib->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
static unsigned long lastTxOkCnt = 0;
static unsigned long lastRxOkCnt = 0;
static void dm_ctstoself(struct net_device *dev)
{
struct r8192_priv *priv = rtllib_priv((struct net_device *)dev);
- PRT_HIGH_THROUGHPUT pHTInfo = priv->rtllib->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
static unsigned long lastTxOkCnt = 0;
static unsigned long lastRxOkCnt = 0;
unsigned long curTxOkCnt = 0;
dm_Init_WA_Broadcom_IOT(struct net_device * dev)
{
struct r8192_priv *priv = rtllib_priv((struct net_device *)dev);
- PRT_HIGH_THROUGHPUT pHTInfo = priv->rtllib->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
pHTInfo->bWAIotBroadcom = false;
pHTInfo->WAIotTH = WAIotTHVal;
#define SN_LESS(a, b) (((a-b)&0x800)!=0)
void rtllib_tx_query_agg_cap(struct rtllib_device* ieee, struct sk_buff* skb, cb_desc* tcb_desc)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
struct tx_ts_record *pTxTs = NULL;
struct rtllib_hdr_1addr* hdr = (struct rtllib_hdr_1addr*)skb->data;
extern void
rtllib_query_HTCapShortGI(struct rtllib_device *ieee, cb_desc *tcb_desc)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
tcb_desc->bUseShortGI = false;
void rtllib_query_BandwidthMode(struct rtllib_device* ieee, cb_desc *tcb_desc)
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
tcb_desc->bPacketBW = false;
}
else
{
- PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
+ struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
while (true)
{
if (pHTInfo->IOTAction & HT_IOT_ACT_FORCED_CTS2SELF)