From: Helmut Schaa Date: Fri, 27 Jan 2012 10:02:51 +0000 (+0100) Subject: mac80211: Fix incorrect num_sta_ps decrement in __sta_info_destroy X-Git-Tag: v3.4-rc1~177^2~376^2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab694d302b489c5aa49c360dc97149b77c96586;p=pandora-kernel.git mac80211: Fix incorrect num_sta_ps decrement in __sta_info_destroy When WLAN_STA_PS_DRIVER is set by ieee80211_sta_block_awake the num_sta_ps counter is not incremented. Hence, we shouldn't decrement it in __sta_info_destroy if only WLAN_STA_PS_DRIVER is set. This could result in an incorrect num_sta_ps counter leading to strange side effects with associated powersaving clients. Fix this by only decrementing num_sta_ps when WLAN_STA_PS_STA was set before. Signed-off-by: Helmut Schaa Signed-off-by: John W. Linville --- Reading git-diff-tree failed