aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-01-07 12:28:20 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:58 -0500
commit4be8c3873e0b88397866d3ede578503e188f9ad2 (patch)
tree1ccf8a0c204bb01aca08d90c2d8c37b5e0439bd3 /drivers/net/wireless/rt2x00/rt61pci.c
parentacbaf32e94cb70218792cac68e5149e482e77441 (diff)
mac80211: extend/document powersave API
This modifies hardware flags for powersave to support three different flags: * IEEE80211_HW_SUPPORTS_PS - indicates general PS support * IEEE80211_HW_PS_NULLFUNC_STACK - indicates nullfunc sending in software * IEEE80211_HW_SUPPORTS_DYNAMIC_PS - indicates dynamic PS on the device It also adds documentation for all this which explains how to set the various flags. Additionally, it fixes a few things: * a spot where && was used to test flags * enable CONF_PS only when associated again Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 82d35a5a4aa7..549480a963e9 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -2556,7 +2556,9 @@ static int rt61pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
2556 */ 2556 */
2557 rt2x00dev->hw->flags = 2557 rt2x00dev->hw->flags =
2558 IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | 2558 IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |
2559 IEEE80211_HW_SIGNAL_DBM; 2559 IEEE80211_HW_SIGNAL_DBM |
2560 IEEE80211_HW_SUPPORTS_PS |
2561 IEEE80211_HW_PS_NULLFUNC_STACK;
2560 rt2x00dev->hw->extra_tx_headroom = 0; 2562 rt2x00dev->hw->extra_tx_headroom = 0;
2561 2563
2562 SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev); 2564 SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev);