ath9k: add some extra checks to the mic failure fix
[openwrt.git] / package / mac80211 / patches / 810-p54-fix-ps.patch
1 From: Christian Lamparter <chunkeey@googlemail.com>\r
2 \r
3 Michael reported that p54* never really entered power\r
4 save mode, even tough it was enabled.\r
5 \r
6 It turned out that upon a power save mode change the\r
7 firmware will set a special flag onto the last outgoing\r
8 frame tx status (which in this case is almost always the\r
9 designated PSM nullfunc frame). This flag confused the\r
10 driver; It erroneously reported transmission failures\r
11 to the stack, which then generated the next nullfunc.\r
12 and so on...\r
13 \r
14 Cc: <stable@kernel.org>\r
15 Reported-by: Michael Buesch <mb@bu3sch.de>\r
16 Tested-by: Michael Buesch <mb@bu3sch.de>\r
17 Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>\r
18 ---\r
19 ---
20  drivers/net/wireless/p54/txrx.c |    2 +-
21  1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- compat-wireless-2010-07-29.orig/drivers/net/wireless/p54/txrx.c
24 +++ compat-wireless-2010-07-29/drivers/net/wireless/p54/txrx.c
25 @@ -446,7 +446,7 @@ static void p54_rx_frame_sent(struct p54
26         }
27  
28         if (!(info->flags & IEEE80211_TX_CTL_NO_ACK) &&
29 -            (!payload->status))
30 +            !(payload->status & P54_TX_FAILED))
31                 info->flags |= IEEE80211_TX_STAT_ACK;
32         if (payload->status & P54_TX_PSM_CANCELLED)
33                 info->flags |= IEEE80211_TX_STAT_TX_FILTERED;