aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2010-05-08 17:40:25 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-10 14:56:49 -0400
commitf224f4ef794c4a9146a7fa7303018fecab8c9328 (patch)
tree4ec01566480494152b1ec90bd491ee717a7c32c9 /drivers/net
parentd61cb26696e19494c049297def6c8f37d9e2f534 (diff)
rt2x00: provide beacon's txdesc to write_beacon callback function.
Preparation to fix rt2800 beaconing. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c3
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c3
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c3
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c3
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c3
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h3
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c3
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c3
9 files changed, 17 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index 9c13a4e0e731..4b3845152e1f 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -1059,7 +1059,8 @@ static void rt2400pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1059/* 1059/*
1060 * TX data initialization 1060 * TX data initialization
1061 */ 1061 */
1062static void rt2400pci_write_beacon(struct queue_entry *entry) 1062static void rt2400pci_write_beacon(struct queue_entry *entry,
1063 struct txentry_desc *txdesc)
1063{ 1064{
1064 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 1065 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
1065 struct queue_entry_priv_pci *entry_priv = entry->priv_data; 1066 struct queue_entry_priv_pci *entry_priv = entry->priv_data;
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index 84ab56ec5872..d876c6d87591 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -1216,7 +1216,8 @@ static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1216/* 1216/*
1217 * TX data initialization 1217 * TX data initialization
1218 */ 1218 */
1219static void rt2500pci_write_beacon(struct queue_entry *entry) 1219static void rt2500pci_write_beacon(struct queue_entry *entry,
1220 struct txentry_desc *txdesc)
1220{ 1221{
1221 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 1222 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
1222 struct queue_entry_priv_pci *entry_priv = entry->priv_data; 1223 struct queue_entry_priv_pci *entry_priv = entry->priv_data;
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 5ee9b9fd77b3..30c0544e8036 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1082,7 +1082,8 @@ static void rt2500usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1082 */ 1082 */
1083static void rt2500usb_beacondone(struct urb *urb); 1083static void rt2500usb_beacondone(struct urb *urb);
1084 1084
1085static void rt2500usb_write_beacon(struct queue_entry *entry) 1085static void rt2500usb_write_beacon(struct queue_entry *entry,
1086 struct txentry_desc *txdesc)
1086{ 1087{
1087 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 1088 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
1088 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev); 1089 struct usb_device *usb_dev = to_usb_device_intf(rt2x00dev->dev);
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 6d564607bbbd..80c67681cf9f 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -678,7 +678,8 @@ static void rt2800pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
678/* 678/*
679 * TX data initialization 679 * TX data initialization
680 */ 680 */
681static void rt2800pci_write_beacon(struct queue_entry *entry) 681static void rt2800pci_write_beacon(struct queue_entry *entry,
682 struct txentry_desc *txdesc)
682{ 683{
683 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 684 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
684 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); 685 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb);
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index dbec71852f00..d992a9352ed7 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -427,7 +427,8 @@ static void rt2800usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
427/* 427/*
428 * TX data initialization 428 * TX data initialization
429 */ 429 */
430static void rt2800usb_write_beacon(struct queue_entry *entry) 430static void rt2800usb_write_beacon(struct queue_entry *entry,
431 struct txentry_desc *txdesc)
431{ 432{
432 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 433 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
433 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); 434 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb);
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 4f9b666f7a7f..6c1ff4c15c84 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -551,7 +551,8 @@ struct rt2x00lib_ops {
551 struct txentry_desc *txdesc); 551 struct txentry_desc *txdesc);
552 int (*write_tx_data) (struct queue_entry *entry, 552 int (*write_tx_data) (struct queue_entry *entry,
553 struct txentry_desc *txdesc); 553 struct txentry_desc *txdesc);
554 void (*write_beacon) (struct queue_entry *entry); 554 void (*write_beacon) (struct queue_entry *entry,
555 struct txentry_desc *txdesc);
555 int (*get_tx_data_len) (struct queue_entry *entry); 556 int (*get_tx_data_len) (struct queue_entry *entry);
556 void (*kick_tx_queue) (struct rt2x00_dev *rt2x00dev, 557 void (*kick_tx_queue) (struct rt2x00_dev *rt2x00dev,
557 const enum data_queue_qid queue); 558 const enum data_queue_qid queue);
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
index 949aaad0cbd2..12ec68577f99 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
@@ -604,7 +604,7 @@ int rt2x00queue_update_beacon(struct rt2x00_dev *rt2x00dev,
604 /* 604 /*
605 * Send beacon to hardware and enable beacon genaration.. 605 * Send beacon to hardware and enable beacon genaration..
606 */ 606 */
607 rt2x00dev->ops->lib->write_beacon(intf->beacon); 607 rt2x00dev->ops->lib->write_beacon(intf->beacon, &txdesc);
608 608
609 mutex_unlock(&intf->beacon_skb_mutex); 609 mutex_unlock(&intf->beacon_skb_mutex);
610 610
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 9e3a1ee426e2..24363634e6fd 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1842,7 +1842,8 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1842/* 1842/*
1843 * TX data initialization 1843 * TX data initialization
1844 */ 1844 */
1845static void rt61pci_write_beacon(struct queue_entry *entry) 1845static void rt61pci_write_beacon(struct queue_entry *entry,
1846 struct txentry_desc *txdesc)
1846{ 1847{
1847 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 1848 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
1848 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); 1849 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb);
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index ca3707af4b4c..81f6db1b16f2 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -1504,7 +1504,8 @@ static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1504/* 1504/*
1505 * TX data initialization 1505 * TX data initialization
1506 */ 1506 */
1507static void rt73usb_write_beacon(struct queue_entry *entry) 1507static void rt73usb_write_beacon(struct queue_entry *entry,
1508 struct txentry_desc *txdesc)
1508{ 1509{
1509 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; 1510 struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
1510 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); 1511 struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb);