p54: Fix powersave mode
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 25 Aug 2010 13:46:40 +0000 (13:46 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 25 Aug 2010 13:46:40 +0000 (13:46 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22797 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/810-p54-fix-ps.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/810-p54-fix-ps.patch b/package/mac80211/patches/810-p54-fix-ps.patch
new file mode 100644 (file)
index 0000000..60ca120
--- /dev/null
@@ -0,0 +1,33 @@
+From: Christian Lamparter <chunkeey@googlemail.com>\r
+\r
+Michael reported that p54* never really entered power\r
+save mode, even tough it was enabled.\r
+\r
+It turned out that upon a power save mode change the\r
+firmware will set a special flag onto the last outgoing\r
+frame tx status (which in this case is almost always the\r
+designated PSM nullfunc frame). This flag confused the\r
+driver; It erroneously reported transmission failures\r
+to the stack, which then generated the next nullfunc.\r
+and so on...\r
+\r
+Cc: <stable@kernel.org>\r
+Reported-by: Michael Buesch <mb@bu3sch.de>\r
+Tested-by: Michael Buesch <mb@bu3sch.de>\r
+Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>\r
+---\r
+---
+ drivers/net/wireless/p54/txrx.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- compat-wireless-2010-07-29.orig/drivers/net/wireless/p54/txrx.c
++++ compat-wireless-2010-07-29/drivers/net/wireless/p54/txrx.c
+@@ -446,7 +446,7 @@ static void p54_rx_frame_sent(struct p54
+       }
+       if (!(info->flags & IEEE80211_TX_CTL_NO_ACK) &&
+-           (!payload->status))
++           !(payload->status & P54_TX_FAILED))
+               info->flags |= IEEE80211_TX_STAT_ACK;
+       if (payload->status & P54_TX_PSM_CANCELLED)
+               info->flags |= IEEE80211_TX_STAT_TX_FILTERED;
This page took 0.033966 seconds and 4 git commands to generate.