Helmut Schaa 2ab694d302 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 <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-01-30 15:48:18 -05:00
..
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:20 -04:00
2011-12-19 14:31:37 -05:00
2011-07-08 11:11:20 -04:00
2009-07-10 15:01:49 -04:00
2011-11-28 14:44:09 -05:00
2012-01-04 14:31:47 -05:00
2012-01-24 14:21:55 -05:00
2012-01-24 14:21:55 -05:00
2011-03-31 11:26:23 -03:00
2012-01-27 14:56:55 -05:00
2012-01-27 14:56:55 -05:00
2011-11-21 16:20:42 -05:00