]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: initialize sta->last_rx in sta_info_alloc
authorFelix Fietkau <nbd@openwrt.org>
Mon, 21 Mar 2011 19:01:00 +0000 (20:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Mar 2011 19:19:50 +0000 (15:19 -0400)
commit8bc8aecdc5e26cfda12dbd6867af4aa67836da6a
treea76e8ea6da9ebafe1f7407f304521ed242fab756
parent61e1b0b00c793ad5a32fe2181c9f77115fed5dc4
mac80211: initialize sta->last_rx in sta_info_alloc

This field is used to determine the inactivity time. When in AP mode,
hostapd uses it for kicking out inactive clients after a while. Without this
patch, hostapd immediately deauthenticates a new client if it checks the
inactivity time before the client sends its first data frame.

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