hostap/src/drivers
Masashi Honma 0cb5f8d945 mesh: Fix inactivity timer for 32 bit system
Commit 5a2a6de6a5 ('mesh: Make inactivity
timer configurable') has a problem on 32 bit systems. Setting
NL80211_MESHCONF_PLINK_TIMEOUT to 0xffffffff causes expiration of STA in
a minute by NL80211_CMD_DEL_STATION event. this is the kernel rule for
STA expiration:

(current jiffies) > (frame Rx jiffies + NL80211_MESHCONF_PLINK_TIMEOUT * 250)

On a 32 bit system, the right side could overflow 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. However, old kernel does not support
disabling it. If so, this patch sets mac80211 inactivity timer 60
seconds into future from the wpa_supplicant inactivity timer.

And I mis-understood that mesh_max_inactivity=0 disables inactivity
timer in wpa_supplicant. This commit fixes it also.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2015-02-07 22:20:45 +02:00
..
.gitignore Force rebuilding of src/drivers between hostapd and wpa_supplicant 2009-08-14 20:40:37 +03:00
android_drv.h Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
driver.h Add Suite B AKMs to key_mgmt capability list 2015-01-27 01:43:55 +02:00
driver_atheros.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_bsd.c bsd: Fix parsing of ieee80211req_scan_result on FreeBSD and DragonFly 2015-01-10 11:43:29 +02:00
driver_common.c hostapd: Allow ACS to be offloaded to the driver 2014-12-03 22:31:53 +02:00
driver_hostap.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_hostap.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
driver_macsec_qca.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_ndis.c Get rid of duplicated cipher suite and AKM definitions 2013-12-31 09:16:27 +02:00
driver_ndis.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
driver_ndis_.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
driver_nl80211.c mesh: Fix inactivity timer for 32 bit system 2015-02-07 22:20:45 +02:00
driver_nl80211.h nl80211: Check support for rekey offload on first use 2015-01-05 12:00:09 +02:00
driver_nl80211_android.c nl80211: Fix Android compilation by adding include for fcntl.h 2014-11-16 17:09:11 +02:00
driver_nl80211_capa.c Add Suite B AKMs to key_mgmt capability list 2015-01-27 01:43:55 +02:00
driver_nl80211_event.c nl80211: Simplify event processing error paths 2015-01-05 13:40:07 +02:00
driver_nl80211_monitor.c nl80211: Move AP monitor interface handling to a separate file 2014-10-26 17:54:56 +02:00
driver_nl80211_scan.c nl80211: Fix AP-scan-in-STA-mode error path behavior 2015-01-15 00:59:14 +02:00
driver_none.c Remove unused send_eapol() driver op 2014-12-11 15:40:07 +02:00
driver_openbsd.c Add driver for OpenBSD net80211 layer 2013-02-03 21:16:29 +02:00
driver_privsep.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_roboswitch.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_wext.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_wext.h Android: Remove old WEXT extensions 2013-12-24 22:52:18 +02:00
driver_wired.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
drivers.c madwifi: Remove obsolete madwifi driver interface 2014-11-01 16:15:29 +02:00
drivers.mak nl80211: Move scanning related functionality to a separate file 2014-12-06 17:59:26 +02:00
drivers.mk nl80211: Move scanning related functionality to a separate file 2014-12-06 17:59:26 +02:00
linux_defines.h nl80211: Move definitions into separate header files 2014-10-26 17:03:24 +02:00
linux_ioctl.c Verify that readlink() did not truncate result 2013-10-26 15:55:39 +03:00
linux_ioctl.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
linux_wext.h wext: Fix musl build error 2014-12-14 18:05:32 +02:00
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
ndis_events.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
netlink.c netlink: Fix RTM_SETLINK padding at the end of the message 2014-10-12 19:27:16 +03:00
netlink.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
nl80211_copy.h Sync with wireless-testing.git include/uapi/linux/nl80211.h 2015-01-04 18:59:31 +02:00
priv_netlink.h netlink: Fix RTM_SETLINK padding at the end of the message 2014-10-12 19:27:16 +03:00
rfkill.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
rfkill.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00