rt2x00: call entry directly in rt2x00_dump_frame
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 8 Feb 2017 12:51:30 +0000 (13:51 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 8 Feb 2017 15:30:19 +0000 (17:30 +0200)
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2400pci.c
drivers/net/wireless/ralink/rt2x00/rt2500pci.c
drivers/net/wireless/ralink/rt2x00/rt2500usb.c
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
drivers/net/wireless/ralink/rt2x00/rt2x00.h
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
drivers/net/wireless/ralink/rt2x00/rt61pci.c
drivers/net/wireless/ralink/rt2x00/rt73usb.c

index 085c5b423bdfa8e4992be6b12047b3b86191a375..19874439ac40fc6419ccee96e062846a972067c8 100644 (file)
@@ -1200,7 +1200,7 @@ static void rt2400pci_write_beacon(struct queue_entry *entry,
        /*
         * Dump beacon to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry);
 out:
        /*
         * Enable beaconing again.
index 9832fd50c7935e39c27653b1ad935ab6dd0176fc..791434de8052e7ecba344c9a5f379a7b78b1f35e 100644 (file)
@@ -1349,7 +1349,7 @@ static void rt2500pci_write_beacon(struct queue_entry *entry,
        /*
         * Dump beacon to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry);
 out:
        /*
         * Enable beaconing again.
index cd3ab5a9e98da6d25d8d978b28d593afe0033818..62357465fe291f8dd8411aea2b2b330e80f71c30 100644 (file)
@@ -1170,7 +1170,7 @@ static void rt2500usb_write_beacon(struct queue_entry *entry,
        /*
         * Dump beacon to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry);
 
        /*
         * USB devices cannot blindly pass the skb->len as the
index 572cdea4ca25c474203806d68b77e699ef56a05e..8223a15203165d32f09c03fff245162d04968b60 100644 (file)
@@ -1014,7 +1014,7 @@ void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc)
        /*
         * Dump beacon to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry);
 
        /*
         * Write entire beacon with TXWI and padding to register.
index ea299c4e7adaf2d3b6ce3f21894b37591cc7d6c7..26869b3bef45ff9d8ed1e7b4701773c8e7b04251 100644 (file)
@@ -1400,11 +1400,11 @@ void rt2x00queue_flush_queues(struct rt2x00_dev *rt2x00dev, bool drop);
  */
 #ifdef CONFIG_RT2X00_LIB_DEBUGFS
 void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
-                           enum rt2x00_dump_type type, struct sk_buff *skb);
+                           enum rt2x00_dump_type type, struct queue_entry *entry);
 #else
 static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
                                          enum rt2x00_dump_type type,
-                                         struct sk_buff *skb)
+                                         struct queue_entry *entry)
 {
 }
 #endif /* CONFIG_RT2X00_LIB_DEBUGFS */
index 72ae530e4a3bdc499f73ef72e3ce8c85351b8033..964aefdc11f004593d4f171a87895687dde57108 100644 (file)
@@ -157,9 +157,10 @@ void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
 }
 
 void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
-                           enum rt2x00_dump_type type, struct sk_buff *skb)
+                           enum rt2x00_dump_type type, struct queue_entry *entry)
 {
        struct rt2x00debug_intf *intf = rt2x00dev->debugfs_intf;
+       struct sk_buff *skb = entry->skb;
        struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb);
        struct sk_buff *skbcopy;
        struct rt2x00dump_hdr *dump_hdr;
@@ -196,8 +197,8 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
        dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf);
        dump_hdr->chip_rev = cpu_to_le16(rt2x00dev->chip.rev);
        dump_hdr->type = cpu_to_le16(type);
-       dump_hdr->queue_index = skbdesc->entry->queue->qid;
-       dump_hdr->entry_index = skbdesc->entry->entry_idx;
+       dump_hdr->queue_index = entry->queue->qid;
+       dump_hdr->entry_index = entry->entry_idx;
        dump_hdr->timestamp_sec = cpu_to_le32(timestamp.tv_sec);
        dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec);
 
index 4b08007f93f732b543329ccacb2ad4ad24a62437..dd6678109b7e4609533c296f774dea5864df5370 100644 (file)
@@ -363,7 +363,7 @@ void rt2x00lib_txdone(struct queue_entry *entry,
         * Send frame to debugfs immediately, after this call is completed
         * we are going to overwrite the skb->cb array.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_TXDONE, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_TXDONE, entry);
 
        /*
         * Determine if the frame has been successfully transmitted and
@@ -772,7 +772,7 @@ void rt2x00lib_rxdone(struct queue_entry *entry, gfp_t gfp)
         */
        rt2x00link_update_stats(rt2x00dev, entry->skb, &rxdesc);
        rt2x00debug_update_crypto(rt2x00dev, &rxdesc);
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_RXDONE, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_RXDONE, entry);
 
        /*
         * Initialize RX status information, and send frame
index b2364d3787743b8a75df56b6763f4270eae4bddd..380daf4e1b8dc09e6c2cc8b18c041bb34688ee31 100644 (file)
@@ -544,7 +544,7 @@ static void rt2x00queue_write_tx_descriptor(struct queue_entry *entry,
         * All processing on the frame has been completed, this means
         * it is now ready to be dumped to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(queue->rt2x00dev, DUMP_FRAME_TX, entry->skb);
+       rt2x00debug_dump_frame(queue->rt2x00dev, DUMP_FRAME_TX, entry);
 }
 
 static void rt2x00queue_kick_tx_queue(struct data_queue *queue,
index 8adb5f3abe1579be7c6cdc309d45e430929ed5ae..973d418b81130321a95d0f4e1dacb11c4a225e20 100644 (file)
@@ -1988,7 +1988,7 @@ static void rt61pci_write_beacon(struct queue_entry *entry,
        /*
         * Dump beacon to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry);
 
        /*
         * Write entire beacon with descriptor and padding to register.
index 1a29c4d205a5ec6272371940185efe07848eb7d2..bb8d307a789ff77a619dc05fc045e58f79ee624b 100644 (file)
@@ -1557,7 +1557,7 @@ static void rt73usb_write_beacon(struct queue_entry *entry,
        /*
         * Dump beacon to userspace through debugfs.
         */
-       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb);
+       rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry);
 
        /*
         * Write entire beacon with descriptor and padding to register.