Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267738
b: refs/heads/master
c: a07dc3d
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent 937f47b commit 441d258
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22a2f51027de74b519a0c87715722921cb8dc751
refs/heads/master: a07dc3d145334fec51f1b773a47e84cd1d36c3ec
4 changes: 2 additions & 2 deletions trunk/drivers/staging/rtl8192e/r8190P_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ struct tx_fwinfo {
u32 PacketID:13;
};//;

typedef struct _TX_FWINFO_8190PCI{
struct tx_fwinfo_8190pci {
u8 TxRate:7;
u8 CtsEnable:1;
u8 RtsRate:7;
Expand Down Expand Up @@ -237,7 +237,7 @@ typedef struct _TX_FWINFO_8190PCI{
u32 PacketID:13;


}TX_FWINFO_8190PCI, *PTX_FWINFO_8190PCI;
};//, *struct tx_fwinfo_8190pci *;


#define TX_DESC_SIZE 32
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/rtl8192e/r8192E_cmdpkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
cb_desc *tcb_desc;
u8 bLastIniPkt;

PTX_FWINFO_8190PCI pTxFwInfo = NULL;
struct tx_fwinfo_8190pci *pTxFwInfo = NULL;

RT_TRACE(COMP_CMDPKT,"%s(),buffer_len is %d\n",__func__,buffer_len);
firmware_init_param(dev);
Expand Down Expand Up @@ -82,8 +82,8 @@
tcb_desc->pkt_size = frag_length;

seg_ptr = skb_put(skb, priv->rtllib->tx_headroom);
pTxFwInfo = (PTX_FWINFO_8190PCI)seg_ptr;
memset(pTxFwInfo,0,sizeof(TX_FWINFO_8190PCI));
pTxFwInfo = (struct tx_fwinfo_8190pci *)seg_ptr;
memset(pTxFwInfo,0,sizeof(struct tx_fwinfo_8190pci));
memset(pTxFwInfo,0x12,8);

seg_ptr = skb_put(skb, frag_length);
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/staging/rtl8192e/r8192E_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,9 +1159,9 @@ void rtl8192_tx_fill_desc(struct net_device* dev, tx_desc * pdesc, cb_desc * cb
{
struct r8192_priv *priv = rtllib_priv(dev);
dma_addr_t mapping = pci_map_single(priv->pdev, skb->data, skb->len, PCI_DMA_TODEVICE);
TX_FWINFO_8190PCI *pTxFwInfo = NULL;
pTxFwInfo = (PTX_FWINFO_8190PCI)skb->data;
memset(pTxFwInfo,0,sizeof(TX_FWINFO_8190PCI));
struct tx_fwinfo_8190pci *pTxFwInfo = NULL;
pTxFwInfo = (struct tx_fwinfo_8190pci *)skb->data;
memset(pTxFwInfo,0,sizeof(struct tx_fwinfo_8190pci));
pTxFwInfo->TxHT = (cb_desc->data_rate&0x80)?1:0;
pTxFwInfo->TxRate = MRateToHwRate8190Pci((u8)cb_desc->data_rate);
pTxFwInfo->EnableCPUDur = cb_desc->bTxEnableFwCalcDur;
Expand Down Expand Up @@ -1205,8 +1205,8 @@ void rtl8192_tx_fill_desc(struct net_device* dev, tx_desc * pdesc, cb_desc * cb
memset((u8*)pdesc,0,12);
pdesc->LINIP = 0;
pdesc->CmdInit = 1;
pdesc->Offset = sizeof(TX_FWINFO_8190PCI) + 8;
pdesc->PktSize = (u16)skb->len-sizeof(TX_FWINFO_8190PCI);
pdesc->Offset = sizeof(struct tx_fwinfo_8190pci) + 8;
pdesc->PktSize = (u16)skb->len-sizeof(struct tx_fwinfo_8190pci);

pdesc->SecCAMID= 0;
pdesc->RATid = cb_desc->RATRIndex;
Expand Down Expand Up @@ -1244,7 +1244,7 @@ void rtl8192_tx_fill_desc(struct net_device* dev, tx_desc * pdesc, cb_desc * cb
pdesc->PktId = 0x0;

pdesc->QueueSelect = rtl8192_MapHwQueueToFirmwareQueue(cb_desc->queue_index, cb_desc->priority);
pdesc->TxFWInfoSize = sizeof(TX_FWINFO_8190PCI);
pdesc->TxFWInfoSize = sizeof(struct tx_fwinfo_8190pci);

pdesc->DISFB = cb_desc->bTxDisableRateFallBack;
pdesc->USERATE = cb_desc->bTxUseDriverAssingedRate;
Expand All @@ -1271,7 +1271,7 @@ void rtl8192_tx_fill_cmd_desc(struct net_device* dev, tx_desc_cmd * entry,
} else {
tx_desc* entry_tmp = (tx_desc*)entry;
entry_tmp->CmdInit = DESC_PACKET_TYPE_NORMAL;
entry_tmp->Offset = sizeof(TX_FWINFO_8190PCI) + 8;
entry_tmp->Offset = sizeof(struct tx_fwinfo_8190pci) + 8;
entry_tmp->PktSize = (u16)(cb_desc->pkt_size + entry_tmp->Offset);
entry_tmp->QueueSelect = QSLT_CMD;
entry_tmp->TxFWInfoSize = 0x08;
Expand Down Expand Up @@ -2057,7 +2057,7 @@ rtl8192_InitializeVariables(struct net_device *dev)
IEEE_SOFTMAC_PROBERS | IEEE_SOFTMAC_TX_QUEUE /* |
IEEE_SOFTMAC_BEACONS*/;

priv->rtllib->tx_headroom = sizeof(TX_FWINFO_8190PCI);
priv->rtllib->tx_headroom = sizeof(struct tx_fwinfo_8190pci);

priv->ShortRetryLimit = 0x30;
priv->LongRetryLimit = 0x30;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff* skb)

priv->rtllib->bAwakePktSent = true;

fwinfo_size = sizeof(TX_FWINFO_8190PCI);
fwinfo_size = sizeof(struct tx_fwinfo_8190pci);

header = (struct rtllib_hdr_1addr *)(((u8*)skb->data) + fwinfo_size);
fc = header->frame_ctl;
Expand Down

0 comments on commit 441d258

Please sign in to comment.