]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mac80211: PS processing for every Beacon with our AID in TIM
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 19 May 2009 14:01:43 +0000 (17:01 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:33 +0000 (14:46 -0400)
commit30196673fe17934617b5d5bfd456a0edf057a0b9
tree48f2d37cb7b47d83a1d45c6e9e258d7c8b26800a
parentdc8c4585d2e6f3bf5c9d8c0a6036b591bd3baf2e
mac80211: PS processing for every Beacon with our AID in TIM

If the AP includes our AID in the TIM IE, we need to process the
Beacon frame as far as PS is concerned (send PS-Poll or nullfunc data
with PM=0). The previous code skipped this in cases where the CRC
value did not change and it would not change if the AP continues
including our AID in the TIM..

There is no need to count the crc32 value for directed_tim with this
change, so we can remove that part. In order not to change the order
of operations (i.e., update WMM parameters prior to sending PS-Poll),
the CRC match is checked twice as only after the PS processing step,
the rest of the function is skipped if nothing changed in the Beacon.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c