aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-08-12 17:33:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:14:08 -0400
commit16cb9d42b68b339852e8914f2538ca9a2aec616c (patch)
treeaef8822ae4d5dc7574af3c52501b8d6449c2ccc0 /include/net/cfg80211.h
parent36e6fea84905512ea776707e82b5b435220efc17 (diff)
cfg80211: allow driver to override PS default
Sometimes drivers might have a good reason to override the PS default, like iwlwifi right now where it affects RX performance significantly at this point. This will allow them to override the default, if desired, in a way that users can still change it according to their trade-off choices, not the driver's, like would happen if the driver just disabled PS completely then. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 223913434e51..0b146bb2dd14 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1108,6 +1108,9 @@ struct cfg80211_ops {
1108 * @net: the network namespace this wiphy currently lives in 1108 * @net: the network namespace this wiphy currently lives in
1109 * @netnsok: if set to false, do not allow changing the netns of this 1109 * @netnsok: if set to false, do not allow changing the netns of this
1110 * wiphy at all 1110 * wiphy at all
1111 * @ps_default: default for powersave, will be set depending on the
1112 * kernel's default on wiphy_new(), but can be changed by the
1113 * driver if it has a good reason to override the default
1111 */ 1114 */
1112struct wiphy { 1115struct wiphy {
1113 /* assign these fields before you register the wiphy */ 1116 /* assign these fields before you register the wiphy */
@@ -1123,6 +1126,7 @@ struct wiphy {
1123 bool disable_beacon_hints; 1126 bool disable_beacon_hints;
1124 1127
1125 bool netnsok; 1128 bool netnsok;
1129 bool ps_default;
1126 1130
1127 enum cfg80211_signal_type signal_type; 1131 enum cfg80211_signal_type signal_type;
1128 1132