mac80211: only transition STAs ps->wake on data frames
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 26 Nov 2008 14:02:58 +0000 (15:02 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Dec 2008 14:32:11 +0000 (09:32 -0500)
commit72eaa43a532b4156966444779829a986a4432f11
treeca22c7bc823d4746a391cfa37ce31e5751b3a003
parent0d950d84d9d16f7d4edf380a238c5b534ff00d11
mac80211: only transition STAs ps->wake on data frames

When a station goes to PS mode to scan, it will then send
probe requests without the PS bit set. mac80211 will take
that as indication that the station woke up, but it didn't.
This patch changes mac80211 to only consider doze->wake
transitions on data frames to to fix that issue.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c