diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c index 764147dd5aea..275c8a1e6638 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.c +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c | |||
@@ -32,53 +32,6 @@ | |||
32 | #include "rt2x00pci.h" | 32 | #include "rt2x00pci.h" |
33 | 33 | ||
34 | /* | 34 | /* |
35 | * Beacon handlers. | ||
36 | */ | ||
37 | int rt2x00pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | ||
38 | struct ieee80211_tx_control *control) | ||
39 | { | ||
40 | struct rt2x00_dev *rt2x00dev = hw->priv; | ||
41 | struct rt2x00_intf *intf = vif_to_intf(control->vif); | ||
42 | struct queue_entry_priv_pci_tx *priv_tx; | ||
43 | struct skb_frame_desc *skbdesc; | ||
44 | |||
45 | if (unlikely(!intf->beacon)) | ||
46 | return -ENOBUFS; | ||
47 | |||
48 | priv_tx = intf->beacon->priv_data; | ||
49 | |||
50 | /* | ||
51 | * Fill in skb descriptor | ||
52 | */ | ||
53 | skbdesc = get_skb_frame_desc(skb); | ||
54 | memset(skbdesc, 0, sizeof(*skbdesc)); | ||
55 | skbdesc->data = skb->data; | ||
56 | skbdesc->data_len = skb->len; | ||
57 | skbdesc->desc = priv_tx->desc; | ||
58 | skbdesc->desc_len = intf->beacon->queue->desc_size; | ||
59 | skbdesc->entry = intf->beacon; | ||
60 | |||
61 | /* | ||
62 | * Just in case mac80211 doesn't set this correctly, | ||
63 | * but we need this queue set for the descriptor | ||
64 | * initialization. | ||
65 | */ | ||
66 | control->queue = IEEE80211_TX_QUEUE_BEACON; | ||
67 | rt2x00lib_write_tx_desc(rt2x00dev, skb, control); | ||
68 | |||
69 | /* | ||
70 | * Enable beacon generation. | ||
71 | * Write entire beacon with descriptor to register, | ||
72 | * and kick the beacon generator. | ||
73 | */ | ||
74 | memcpy(priv_tx->data, skb->data, skb->len); | ||
75 | rt2x00dev->ops->lib->kick_tx_queue(rt2x00dev, control->queue); | ||
76 | |||
77 | return 0; | ||
78 | } | ||
79 | EXPORT_SYMBOL_GPL(rt2x00pci_beacon_update); | ||
80 | |||
81 | /* | ||
82 | * TX data handlers. | 35 | * TX data handlers. |
83 | */ | 36 | */ |
84 | int rt2x00pci_write_tx_data(struct rt2x00_dev *rt2x00dev, | 37 | int rt2x00pci_write_tx_data(struct rt2x00_dev *rt2x00dev, |