diff options
author | Christian Lamparter <chunkeey@web.de> | 2008-12-09 10:28:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-12 14:01:42 -0500 |
commit | 89fad578a61810b7fdf8edd294890f3c0cde4390 (patch) | |
tree | 7f8c3f45f83e3c1934b447a54d9971fcb4364eaa /include | |
parent | dd397dc9dddfa2149a1bbc9e52ac7d5630737cec (diff) |
mac80211: integrate sta_notify_ps cmds into sta_notify
This patch replaces the newly introduced sta_notify_ps function,
which can be used to notify the driver about every power state
transition for all associated stations, by integrating its functionality
back into the original sta_notify callback.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 5ecc686c1f1..046ce692a90 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -773,25 +773,16 @@ struct ieee80211_sta { | |||
773 | * enum sta_notify_cmd - sta notify command | 773 | * enum sta_notify_cmd - sta notify command |
774 | * | 774 | * |
775 | * Used with the sta_notify() callback in &struct ieee80211_ops, this | 775 | * Used with the sta_notify() callback in &struct ieee80211_ops, this |
776 | * indicates addition and removal of a station to station table. | 776 | * indicates addition and removal of a station to station table, |
777 | * or if a associated station made a power state transition. | ||
777 | * | 778 | * |
778 | * @STA_NOTIFY_ADD: a station was added to the station table | 779 | * @STA_NOTIFY_ADD: a station was added to the station table |
779 | * @STA_NOTIFY_REMOVE: a station being removed from the station table | 780 | * @STA_NOTIFY_REMOVE: a station being removed from the station table |
780 | */ | ||
781 | enum sta_notify_cmd { | ||
782 | STA_NOTIFY_ADD, STA_NOTIFY_REMOVE | ||
783 | }; | ||
784 | |||
785 | /** | ||
786 | * enum sta_notify_ps_cmd - sta power save notify command | ||
787 | * | ||
788 | * Used with the sta_notify_ps() callback in &struct ieee80211_ops to | ||
789 | * notify the driver if a station made a power state transition. | ||
790 | * | ||
791 | * @STA_NOTIFY_SLEEP: a station is now sleeping | 781 | * @STA_NOTIFY_SLEEP: a station is now sleeping |
792 | * @STA_NOTIFY_AWAKE: a sleeping station woke up | 782 | * @STA_NOTIFY_AWAKE: a sleeping station woke up |
793 | */ | 783 | */ |
794 | enum sta_notify_ps_cmd { | 784 | enum sta_notify_cmd { |
785 | STA_NOTIFY_ADD, STA_NOTIFY_REMOVE, | ||
795 | STA_NOTIFY_SLEEP, STA_NOTIFY_AWAKE, | 786 | STA_NOTIFY_SLEEP, STA_NOTIFY_AWAKE, |
796 | }; | 787 | }; |
797 | 788 | ||
@@ -1258,11 +1249,9 @@ enum ieee80211_ampdu_mlme_action { | |||
1258 | * | 1249 | * |
1259 | * @set_rts_threshold: Configuration of RTS threshold (if device needs it) | 1250 | * @set_rts_threshold: Configuration of RTS threshold (if device needs it) |
1260 | * | 1251 | * |
1261 | * @sta_notify: Notifies low level driver about addition or removal of an | 1252 | * @sta_notify: Notifies low level driver about addition, removal or power |
1262 | * associated station, AP, IBSS/WDS/mesh peer etc. Must be atomic. | 1253 | * state transition of an associated station, AP, IBSS/WDS/mesh peer etc. |
1263 | * | 1254 | * Must be atomic. |
1264 | * @sta_ps_notify: Notifies low level driver about the power state transition | ||
1265 | * of a associated station. Must be atomic. | ||
1266 | * | 1255 | * |
1267 | * @conf_tx: Configure TX queue parameters (EDCF (aifs, cw_min, cw_max), | 1256 | * @conf_tx: Configure TX queue parameters (EDCF (aifs, cw_min, cw_max), |
1268 | * bursting) for a hardware TX queue. | 1257 | * bursting) for a hardware TX queue. |
@@ -1329,8 +1318,6 @@ struct ieee80211_ops { | |||
1329 | int (*set_rts_threshold)(struct ieee80211_hw *hw, u32 value); | 1318 | int (*set_rts_threshold)(struct ieee80211_hw *hw, u32 value); |
1330 | void (*sta_notify)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | 1319 | void (*sta_notify)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
1331 | enum sta_notify_cmd, struct ieee80211_sta *sta); | 1320 | enum sta_notify_cmd, struct ieee80211_sta *sta); |
1332 | void (*sta_notify_ps)(struct ieee80211_hw *hw, | ||
1333 | enum sta_notify_ps_cmd, struct ieee80211_sta *sta); | ||
1334 | int (*conf_tx)(struct ieee80211_hw *hw, u16 queue, | 1321 | int (*conf_tx)(struct ieee80211_hw *hw, u16 queue, |
1335 | const struct ieee80211_tx_queue_params *params); | 1322 | const struct ieee80211_tx_queue_params *params); |
1336 | int (*get_tx_stats)(struct ieee80211_hw *hw, | 1323 | int (*get_tx_stats)(struct ieee80211_hw *hw, |