p54: fix ps-poll delivery in ap mode
authorChristian Lamparter <chunkeey@web.de>
Sat, 18 Apr 2009 16:30:13 +0000 (18:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:57:16 +0000 (16:57 -0400)
PS-Polled frames must be sent with OUT_NOCANCEL flag set,
or the firmware will reject all of them, at the station is still blacklisted.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54common.c

index 5368aa33dab879be680311c1027076fa1a59c3e5..71394968d4504a609f93e171cb69faa1b025135a 100644 (file)
@@ -1473,7 +1473,8 @@ static int p54_tx_fill(struct ieee80211_hw *dev, struct sk_buff *skb,
 
                if (info->control.sta)
                        *aid = info->control.sta->aid;
-               else
+
+               if (info->flags & IEEE80211_TX_CTL_CLEAR_PS_FILT)
                        *flags |= P54_HDR_FLAG_DATA_OUT_NOCANCEL;
                break;
        }