diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-01-07 12:28:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:58 -0500 |
commit | 4be8c3873e0b88397866d3ede578503e188f9ad2 (patch) | |
tree | 1ccf8a0c204bb01aca08d90c2d8c37b5e0439bd3 /drivers/net/wireless/rt2x00/rt73usb.c | |
parent | acbaf32e94cb70218792cac68e5149e482e77441 (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/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 2b70c01b55e9..849220236c7d 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2077,7 +2077,9 @@ static int rt73usb_probe_hw_mode(struct rt2x00_dev *rt2x00dev) | |||
2077 | */ | 2077 | */ |
2078 | rt2x00dev->hw->flags = | 2078 | rt2x00dev->hw->flags = |
2079 | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | | 2079 | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | |
2080 | IEEE80211_HW_SIGNAL_DBM; | 2080 | IEEE80211_HW_SIGNAL_DBM | |
2081 | IEEE80211_HW_SUPPORTS_PS | | ||
2082 | IEEE80211_HW_PS_NULLFUNC_STACK; | ||
2081 | rt2x00dev->hw->extra_tx_headroom = TXD_DESC_SIZE; | 2083 | rt2x00dev->hw->extra_tx_headroom = TXD_DESC_SIZE; |
2082 | 2084 | ||
2083 | SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev); | 2085 | SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev); |