]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: update sta->last_rx on acked tx frames
authorFelix Fietkau <nbd@openwrt.org>
Sun, 29 Sep 2013 19:39:34 +0000 (21:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 30 Sep 2013 10:34:09 +0000 (12:34 +0200)
commit7d7c5471a02d09656e09c2add02b92447516d25d
treeae3779c3ddb2187ab5dcfcdac9d89940b2e9554c
parent9782a64c7527b03c7783388547575bf80fa095d2
mac80211: update sta->last_rx on acked tx frames

When clients are idle for too long, hostapd sends nullfunc frames for
probing. When those are acked by the client, the idle time needs to be
updated.

To make this work (and to avoid unnecessary probing), update sta->last_rx
whenever an ACK was received for a tx packet. Only do this if the flag
IEEE80211_HW_REPORTS_TX_ACK_STATUS is set.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/status.c