From: Juuso Oikarinen Date: Mon, 19 Apr 2010 07:12:52 +0000 (+0300) Subject: mac80211: Prevent running sta_cleanup timer unnecessarily X-Git-Tag: v2.6.35-rc1~473^2~393^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3393a608c4979a94d1887efc05b792849d361a65;p=pandora-kernel.git mac80211: Prevent running sta_cleanup timer unnecessarily The sta_cleanup timer is used to periodically expire buffered frames from the tx buf. The timer is executing periodically, regardless of the need for it. This is wasting resources. Fix this simply by not restarting the sta_cleanup timer if the tx buffer was empty. Restart the timer when there is some more tx-traffic. Cc: Janne Ylälehto Signed-off-by: Juuso Oikarinen Signed-off-by: John W. Linville --- Reading git-diff-tree failed