mac80211: add sta_notify_ps callback
Quoted 55 lines · On Monday 01 December 2008 20:17:23 Luis R. Rodriguez wrote:
Quoted 54 lines · Christian Lamparter
This patch is necessary in order to provide a proper Access point support for p54. Unfortunately for us, there is no documented way to disable the interfering power save buffering mechanism in firmware completely.
Therefore we give in and notify the driver through our new
sta_notify_pscallback, so that we can update the filter state.Signed-off-by Christian Lamparter <[email protected]>Acked-by Johannes Berg <[email protected]>---
the extra patch formac80211_hwsimis no longer needed...
This whole series is all for wireless-testing.erm... now with a updated documentation!!1one
---Quoted 9 lines
Review
Quoted 5 lines
clear_sta_flags(sta, WLAN_STA_PS | WLAN_STA_PSPOLL);(quoted diff) +3
-0+ if (local->ops->sta_notify_ps) + local->ops->sta_notify_ps(local_to_hw(local), STA_WOKE_UP, + &sta->sta);With this patch,
STA_WILL_SLEEPandSTA_WOKE_UPare undefined. Is there a prerequisite that I missed?
Larryno it's just fsck fallout. one file got synced in time... the other didn't. SLUB_DEBUG/SLAB_DEBUG don't work at all with p54usb.
---include/net/mac80211.h +13
-0@@ -779,6 +779,19 @@ enum sta_notify_cmd { };/** +* enum sta_notify_ps_cmd - sta power save notify command +* +* Used with the sta_notify_ps() callback in &struct ieee80211_ops to +* notify the driver if a station made a power state transition. +* +* @STA_NOTIFY_SLEEP: a station is now sleeping +* @STA_NOTIFY_AWAKE: a sleeping station woke up +*/ +enum sta_notify_ps_cmd { +STA_NOTIFY_SLEEP ,STA_NOTIFY_AWAKE , +}; + +/** * enum ieee80211_tkip_key_type - get tkip key * * Used by drivers which need to get a tkip key for skb. Some drivers need a @@ -1248,6 +1261,9 @@ enum ieee80211_ampdu_mlme_action {* @sta_notify: Notifies low level driver about addition or removal * of associated station or AP.
Quoted 9 lines
include/net/mac80211.h enum ieee80211_ampdu_mlme_action { · line 1266
Quoted 4 lines
include/net/mac80211.h +3
-0* +* @sta_ps_notify: Notifies low level driver about the power state transition +* of a associated station. Must be atomic. +* Can we add documentation that this is only required when the AP cannot figure this out by itself? This can help people working on AP support to not think they need to implement this for all drivers.
Hmm, yeah... should I edit the documentation for sta_notify as well?
Regards,
Chr
Quoted 65 lines · Christian Lamparter
Quoted 55 lines · On Monday 01 December 2008 20:17:23 Luis R. Rodriguez wrote:
Quoted 54 lines · Christian Lamparter
This patch is necessary in order to provide a proper Access point support for p54. Unfortunately for us, there is no documented way to disable the interfering power save buffering mechanism in firmware completely.
Therefore we give in and notify the driver through our new
sta_notify_pscallback, so that we can update the filter state.Signed-off-by Christian Lamparter <[email protected]>Acked-by Johannes Berg <[email protected]>---
the extra patch formac80211_hwsimis no longer needed...
This whole series is all for wireless-testing.erm... now with a updated documentation!!1one
---Quoted 9 lines
Review
Quoted 5 lines
clear_sta_flags(sta, WLAN_STA_PS | WLAN_STA_PSPOLL);(quoted diff) +3
-0+ if (local->ops->sta_notify_ps) + local->ops->sta_notify_ps(local_to_hw(local), STA_WOKE_UP, + &sta->sta);With this patch,
STA_WILL_SLEEPandSTA_WOKE_UPare undefined. Is there a prerequisite that I missed?
Larryno it's just fsck fallout. one file got synced in time... the other didn't. SLUB_DEBUG/SLAB_DEBUG don't work at all with p54usb.
---include/net/mac80211.h +13
-0@@ -779,6 +779,19 @@ enum sta_notify_cmd { };/** +* enum sta_notify_ps_cmd - sta power save notify command +* +* Used with the sta_notify_ps() callback in &struct ieee80211_ops to +* notify the driver if a station made a power state transition. +* +* @STA_NOTIFY_SLEEP: a station is now sleeping +* @STA_NOTIFY_AWAKE: a sleeping station woke up +*/ +enum sta_notify_ps_cmd { +STA_NOTIFY_SLEEP ,STA_NOTIFY_AWAKE , +}; + +/** * enum ieee80211_tkip_key_type - get tkip key * * Used by drivers which need to get a tkip key for skb. Some drivers need a @@ -1248,6 +1261,9 @@ enum ieee80211_ampdu_mlme_action {* @sta_notify: Notifies low level driver about addition or removal * of associated station or AP. Quoted 9 lines
include/net/mac80211.h enum ieee80211_ampdu_mlme_action { · line 1266
Quoted 4 lines
include/net/mac80211.h +3
-0* +* @sta_ps_notify: Notifies low level driver about the power state transition +* of a associated station. Must be atomic. +* Can we add documentation that this is only required when the AP cannot figure this out by itself? This can help people working on AP support to not think they need to implement this for all drivers.
Quoted 1 line
Hmm, yeah... should I edit the documentation for
sta_notifyas well?
Would be good if it helps.
Luis