mac80211: call ieee80211_recalc_idle() after sending packets
authorFelix Fietkau <nbd@openwrt.org>
Wed, 16 Nov 2011 12:34:55 +0000 (13:34 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 17 Nov 2011 20:45:15 +0000 (15:45 -0500)
commitfcac4fb00eaefea375db9745464cc182389a1751
treed1273395ac9e5798c6b79b870a72e560ee215a59
parent1f80c230a7d291a10045a3cdc2efd18a4185674d
mac80211: call ieee80211_recalc_idle() after sending packets

Some drivers (e.g. ath9k) assume that it's safe to go into low-power mode
immediately after the idle state changes. To support that, mac80211 even
calls drv_flush() before that happens.
In some instances, mac80211 sent a packet right after recalculating the
idle state, this patch fixes that.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c
net/mac80211/offchannel.c