rt2x00: Optimize getting the beacon queue structure.
authorGertjan van Wingerde <gwingerde@gmail.com>
Thu, 3 Mar 2011 18:46:55 +0000 (19:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Mar 2011 19:06:49 +0000 (14:06 -0500)
In the spirit of optimizing the code to get the queue structure of TX queues,
also optimize the code to get beacon queues. We can simply use the bcn queue
field of the rt2x00_dev structure instead of using the rt2x00queue_get_queue
function.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2x00mac.c

index 5cd6575b63582603353ac380e37a12bfe46048a4..58277878889eb14ba90c63817107ca76e02dbfe8 100644 (file)
@@ -293,7 +293,7 @@ static void rt2500pci_config_intf(struct rt2x00_dev *rt2x00dev,
                                  struct rt2x00intf_conf *conf,
                                  const unsigned int flags)
 {
-       struct data_queue *queue = rt2x00queue_get_queue(rt2x00dev, QID_BEACON);
+       struct data_queue *queue = rt2x00dev->bcn;
        unsigned int bcn_preload;
        u32 reg;
 
index 72345787fea6b5167661c51b034c6252d6c893d6..661c6baad2b9bd7005c9d9bee9589d10486f9a0a 100644 (file)
@@ -190,7 +190,7 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw,
 {
        struct rt2x00_dev *rt2x00dev = hw->priv;
        struct rt2x00_intf *intf = vif_to_intf(vif);
-       struct data_queue *queue = rt2x00queue_get_queue(rt2x00dev, QID_BEACON);
+       struct data_queue *queue = rt2x00dev->bcn;
        struct queue_entry *entry = NULL;
        unsigned int i;