aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.c
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@wingerd.gvw.nl>2008-06-06 16:54:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:17:56 -0400
commitd56d453a1dd85aff08fe6965f395049725fdb04e (patch)
tree4dcb94a3cb301fc8c4dcd3892487233f64dcb7af /drivers/net/wireless/rt2x00/rt61pci.c
parentb869767b6f5049f1d1ede2bb3e48832e0722ca5a (diff)
rt2x00: Cleanup struct skb_frame_desc.
The data and data_len fields aren't really necessary in struct skb_frame_desc, as they can be deduced from the skb itself. Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 746f87c8e704..5b7267ece1b9 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1562,7 +1562,7 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1562 1562
1563 if (skbdesc->desc_len > TXINFO_SIZE) { 1563 if (skbdesc->desc_len > TXINFO_SIZE) {
1564 rt2x00_desc_read(txd, 11, &word); 1564 rt2x00_desc_read(txd, 11, &word);
1565 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skbdesc->data_len); 1565 rt2x00_set_field32(&word, TXD_W11_BUFFER_LENGTH0, skb->len);
1566 rt2x00_desc_write(txd, 11, word); 1566 rt2x00_desc_write(txd, 11, word);
1567 } 1567 }
1568 1568
@@ -1581,7 +1581,7 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1581 rt2x00_set_field32(&word, TXD_W0_RETRY_MODE, 1581 rt2x00_set_field32(&word, TXD_W0_RETRY_MODE,
1582 test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags)); 1582 test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags));
1583 rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0); 1583 rt2x00_set_field32(&word, TXD_W0_TKIP_MIC, 0);
1584 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skbdesc->data_len); 1584 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, skb->len);
1585 rt2x00_set_field32(&word, TXD_W0_BURST, 1585 rt2x00_set_field32(&word, TXD_W0_BURST,
1586 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); 1586 test_bit(ENTRY_TXD_BURST, &txdesc->flags));
1587 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE); 1587 rt2x00_set_field32(&word, TXD_W0_CIPHER_ALG, CIPHER_NONE);
@@ -2375,8 +2375,6 @@ static int rt61pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
2375 */ 2375 */
2376 skbdesc = get_skb_frame_desc(skb); 2376 skbdesc = get_skb_frame_desc(skb);
2377 memset(skbdesc, 0, sizeof(*skbdesc)); 2377 memset(skbdesc, 0, sizeof(*skbdesc));
2378 skbdesc->data = skb->data;
2379 skbdesc->data_len = skb->len;
2380 skbdesc->desc = entry_priv->desc; 2378 skbdesc->desc = entry_priv->desc;
2381 skbdesc->desc_len = intf->beacon->queue->desc_size; 2379 skbdesc->desc_len = intf->beacon->queue->desc_size;
2382 skbdesc->entry = intf->beacon; 2380 skbdesc->entry = intf->beacon;
@@ -2401,7 +2399,7 @@ static int rt61pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
2401 skbdesc->desc, skbdesc->desc_len); 2399 skbdesc->desc, skbdesc->desc_len);
2402 rt2x00pci_register_multiwrite(rt2x00dev, 2400 rt2x00pci_register_multiwrite(rt2x00dev,
2403 beacon_base + skbdesc->desc_len, 2401 beacon_base + skbdesc->desc_len,
2404 skbdesc->data, skbdesc->data_len); 2402 skb->data, skb->len);
2405 rt61pci_kick_tx_queue(rt2x00dev, QID_BEACON); 2403 rt61pci_kick_tx_queue(rt2x00dev, QID_BEACON);
2406 2404
2407 return 0; 2405 return 0;