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 /drivers/net/wireless/p54/p54common.c | |
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 'drivers/net/wireless/p54/p54common.c')
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index 89968a5bff84..409ae930d766 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c | |||
@@ -1051,19 +1051,6 @@ static int p54_sta_unlock(struct ieee80211_hw *dev, u8 *addr) | |||
1051 | return 0; | 1051 | return 0; |
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | static void p54_sta_notify_ps(struct ieee80211_hw *dev, | ||
1055 | enum sta_notify_ps_cmd notify_cmd, | ||
1056 | struct ieee80211_sta *sta) | ||
1057 | { | ||
1058 | switch (notify_cmd) { | ||
1059 | case STA_NOTIFY_AWAKE: | ||
1060 | p54_sta_unlock(dev, sta->addr); | ||
1061 | break; | ||
1062 | default: | ||
1063 | break; | ||
1064 | } | ||
1065 | } | ||
1066 | |||
1067 | static void p54_sta_notify(struct ieee80211_hw *dev, struct ieee80211_vif *vif, | 1054 | static void p54_sta_notify(struct ieee80211_hw *dev, struct ieee80211_vif *vif, |
1068 | enum sta_notify_cmd notify_cmd, | 1055 | enum sta_notify_cmd notify_cmd, |
1069 | struct ieee80211_sta *sta) | 1056 | struct ieee80211_sta *sta) |
@@ -1078,6 +1065,10 @@ static void p54_sta_notify(struct ieee80211_hw *dev, struct ieee80211_vif *vif, | |||
1078 | 1065 | ||
1079 | p54_sta_unlock(dev, sta->addr); | 1066 | p54_sta_unlock(dev, sta->addr); |
1080 | break; | 1067 | break; |
1068 | case STA_NOTIFY_AWAKE: | ||
1069 | /* update the firmware's filter table */ | ||
1070 | p54_sta_unlock(dev, sta->addr); | ||
1071 | break; | ||
1081 | default: | 1072 | default: |
1082 | break; | 1073 | break; |
1083 | } | 1074 | } |
@@ -2027,7 +2018,6 @@ static const struct ieee80211_ops p54_ops = { | |||
2027 | .add_interface = p54_add_interface, | 2018 | .add_interface = p54_add_interface, |
2028 | .remove_interface = p54_remove_interface, | 2019 | .remove_interface = p54_remove_interface, |
2029 | .set_tim = p54_set_tim, | 2020 | .set_tim = p54_set_tim, |
2030 | .sta_notify_ps = p54_sta_notify_ps, | ||
2031 | .sta_notify = p54_sta_notify, | 2021 | .sta_notify = p54_sta_notify, |
2032 | .set_key = p54_set_key, | 2022 | .set_key = p54_set_key, |
2033 | .config = p54_config, | 2023 | .config = p54_config, |