diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2011-07-06 23:00:21 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-07 19:21:00 +0200 |
commit | 5f0dd296a01c8173fcc05a8b262a1168ae90bc74 (patch) | |
tree | 456e2ee4b2eb7582351fb19dd863ecafd270703f /drivers/net/wireless/rt2x00/rt2500pci.c | |
parent | rt2x00: Properly identify rt2800usb devices. (diff) | |
download | linux-5f0dd296a01c8173fcc05a8b262a1168ae90bc74.tar.xz linux-5f0dd296a01c8173fcc05a8b262a1168ae90bc74.zip |
rt2x00: Implement tx_frames_pending mac80211 callback function.
Implementing this callback function will cause mac80211 refrain from
going to powersave state when there are still untransmitted TX frames
in the queues.
This would exactly mimic the behaviour of the legacy vendor driver which
also doesn't go in powersave mode if there are still TX frames that are not
transmitted.
This should make powersaving and rt2x00 a better couple.
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/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index d27d7b8ba3b6..c288d951c034 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c @@ -2016,6 +2016,7 @@ static const struct ieee80211_ops rt2500pci_mac80211_ops = { .set_antenna = rt2x00mac_set_antenna, .get_antenna = rt2x00mac_get_antenna, .get_ringparam = rt2x00mac_get_ringparam, + .tx_frames_pending = rt2x00mac_tx_frames_pending, }; static const struct rt2x00lib_ops rt2500pci_rt2x00_ops = { |