mac80211: use nullfunc instead of probe request for connection monitoring
authorFelix Fietkau <nbd@openwrt.org>
Tue, 23 Nov 2010 02:10:31 +0000 (03:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Nov 2010 21:19:35 +0000 (16:19 -0500)
commit4e5ff37692df35c8826f1291204841b174d3c3ce
tree2a4cd6250de19b1e7b895e94136c537c78bcd928
parentdd5b4cc71cd09c33e1579cc6d5720656e94e52de
mac80211: use nullfunc instead of probe request for connection monitoring

nullfunc frames are better for connection monitoring, because probe requests
are answered even if the AP has already dropped the connection, whereas
nullfunc frames from an unassociated station will trigger a disassoc/deauth
frame from the AP (WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA), which allows
the station to reconnect immediately instead of waiting until it attempts to
transmit the next unicast frame.

This only works on hardware with reliable tx ACK reporting, any other hardware
needs to fall back to the probe request method.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/status.c