[PATCH] mesh: Fix inactivity timer for 32 bit system

Jouni Malinen j at w1.fi
Sun Feb 8 09:02:49 EST 2015


On Wed, Feb 04, 2015 at 11:26:51AM +0900, Masashi Honma wrote:
> commit 5a2a6de6a5fec58dcfdb4320e4ec2b69d183a4c1 has problem on 32bit system.
> Setting 0xffffffff to NL80211_MESHCONF_PLINK_TIMEOUT causes expiration of STA in
> a minutes by NL80211_CMD_DEL_STATION event. To explain the reason, I will show
> STA expiration rule in kernel. This is the expression.
> 
> (current jiffies) > (frame Rx jiffies + NL80211_MESHCONF_PLINK_TIMEOUT * 250)
> 
> On 32bit system, right side could be over flow and be unexpected small value if
> NL80211_MESHCONF_PLINK_TIMEOUT is sufficiently large. STA expiration occurs by
> this reason.
> 
> This patch solves the problem by disabling the STA expiration functionality in
> mac80211. But old kernel does not support to disable it. If so, this patch sets
> 60 sec future to mac80211 inactivity timer than wpa_supplicant inactivity timer.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list