diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-01 15:26:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:51 -0400 |
commit | bc92afd92088ab41223383cc6863ab4792533c54 (patch) | |
tree | a31d14843f5a63a4a4561bb2ac59e83f4550433c /include | |
parent | f21293549f60f88c74fcb9944737f11048896dc4 (diff) |
cfg80211: implement iwpower
Just on/off and timeout, and with a hacky cfg80211 method
until we figure out what we want, though this is probably
sufficient as we want to use pm_qos for wifi everywhere.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 07085216532d..82b7d804f6da 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1023,6 +1023,10 @@ struct cfg80211_ops { | |||
1023 | #ifdef CONFIG_NL80211_TESTMODE | 1023 | #ifdef CONFIG_NL80211_TESTMODE |
1024 | int (*testmode_cmd)(struct wiphy *wiphy, void *data, int len); | 1024 | int (*testmode_cmd)(struct wiphy *wiphy, void *data, int len); |
1025 | #endif | 1025 | #endif |
1026 | |||
1027 | /* some temporary stuff to finish wext */ | ||
1028 | int (*set_power_mgmt)(struct wiphy *wiphy, struct net_device *dev, | ||
1029 | bool enabled, int timeout); | ||
1026 | }; | 1030 | }; |
1027 | 1031 | ||
1028 | /* | 1032 | /* |
@@ -1262,6 +1266,8 @@ struct wireless_dev { | |||
1262 | u8 bssid[ETH_ALEN]; | 1266 | u8 bssid[ETH_ALEN]; |
1263 | u8 ssid[IEEE80211_MAX_SSID_LEN]; | 1267 | u8 ssid[IEEE80211_MAX_SSID_LEN]; |
1264 | s8 default_key, default_mgmt_key; | 1268 | s8 default_key, default_mgmt_key; |
1269 | bool ps; | ||
1270 | int ps_timeout; | ||
1265 | } wext; | 1271 | } wext; |
1266 | #endif | 1272 | #endif |
1267 | }; | 1273 | }; |
@@ -1606,6 +1612,13 @@ int cfg80211_wext_giwtxpower(struct net_device *dev, | |||
1606 | struct iw_request_info *info, | 1612 | struct iw_request_info *info, |
1607 | union iwreq_data *data, char *keybuf); | 1613 | union iwreq_data *data, char *keybuf); |
1608 | 1614 | ||
1615 | int cfg80211_wext_siwpower(struct net_device *dev, | ||
1616 | struct iw_request_info *info, | ||
1617 | struct iw_param *wrq, char *extra); | ||
1618 | int cfg80211_wext_giwpower(struct net_device *dev, | ||
1619 | struct iw_request_info *info, | ||
1620 | struct iw_param *wrq, char *extra); | ||
1621 | |||
1609 | /* | 1622 | /* |
1610 | * callbacks for asynchronous cfg80211 methods, notification | 1623 | * callbacks for asynchronous cfg80211 methods, notification |
1611 | * functions and BSS handling helpers | 1624 | * functions and BSS handling helpers |