From: Johannes Berg Date: Thu, 29 Sep 2011 14:04:35 +0000 (+0200) Subject: mac80211: reply only once to each PS-poll X-Git-Tag: v3.2-rc1~129^2~104^2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deeaee197b0fa694ba6c8f02cdb57b3be7115b4f;p=pandora-kernel.git mac80211: reply only once to each PS-poll If a PS-poll frame is retried (but was received) there is no way to detect that since it has no sequence number. As a consequence, the standard asks us to not react to PS-poll frames until the response to one made it out (was ACKed or lost). Implement this by using the WLAN_STA_SP flags to also indicate a PS-Poll "service period" and the IEEE80211_TX_STATUS_EOSP flag for the response packet to indicate the end of the "SP" as usual. We could use separate flags, but that will most likely completely confuse drivers, and while the standard doesn't exclude simultaneously polling using uAPSD and PS-Poll, doing that seems quite problematic. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed