mac80211: Add support for connection monitor in hardware
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Fri, 19 Mar 2010 05:14:53 +0000 (07:14 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 23 Mar 2010 20:51:42 +0000 (16:51 -0400)
commit1e4dcd012423b6a28f968a55886d2b27896a1586
treec2eadaf6a33175840b2f5d8fb7dd6af1d5be76ed
parent43ead78ac48b75aaf47de96fcf10cbf5962f32a6
mac80211: Add support for connection monitor in hardware

This patch is based on a RFC patch by Kalle Valo.

The wl1271 has a feature which handles the connection monitor logic
in hardware, basically sending periodically nullfunc frames and reporting
to the host if AP is lost, after attempting to recover by sending
probe-requests to the AP.

Add support to mac80211 by adding a new flag IEEE80211_HW_CONNECTION_MONITOR
which prevents conn_mon_timer from triggering during idle periods, and
prevents sending probe-requests to the AP if beacon-loss is indicated by the
hardware.

Cc: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/mlme.c