diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2011-03-03 13:46:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-04 14:06:49 -0500 |
commit | a24408307e930e21912e82c125648400041d66fb (patch) | |
tree | 98e623fbeacc297ede100ba9d8da1e1e5c588dc2 /drivers | |
parent | 61c6e4893f3070b6473ca4ec3176c7471d44278b (diff) |
rt2x00: Optimize getting the beacon queue structure.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 5cd6575b6358..58277878889e 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -293,7 +293,7 @@ static void rt2500pci_config_intf(struct rt2x00_dev *rt2x00dev, | |||
293 | struct rt2x00intf_conf *conf, | 293 | struct rt2x00intf_conf *conf, |
294 | const unsigned int flags) | 294 | const unsigned int flags) |
295 | { | 295 | { |
296 | struct data_queue *queue = rt2x00queue_get_queue(rt2x00dev, QID_BEACON); | 296 | struct data_queue *queue = rt2x00dev->bcn; |
297 | unsigned int bcn_preload; | 297 | unsigned int bcn_preload; |
298 | u32 reg; | 298 | u32 reg; |
299 | 299 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 72345787fea6..661c6baad2b9 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -190,7 +190,7 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw, | |||
190 | { | 190 | { |
191 | struct rt2x00_dev *rt2x00dev = hw->priv; | 191 | struct rt2x00_dev *rt2x00dev = hw->priv; |
192 | struct rt2x00_intf *intf = vif_to_intf(vif); | 192 | struct rt2x00_intf *intf = vif_to_intf(vif); |
193 | struct data_queue *queue = rt2x00queue_get_queue(rt2x00dev, QID_BEACON); | 193 | struct data_queue *queue = rt2x00dev->bcn; |
194 | struct queue_entry *entry = NULL; | 194 | struct queue_entry *entry = NULL; |
195 | unsigned int i; | 195 | unsigned int i; |
196 | 196 | ||