rt2x00: Only update rssi average approximation on receiving beacon frames.
authorMattias Nissler <mattias.nissler@gmx.de>
Tue, 27 Nov 2007 20:50:26 +0000 (21:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:05:09 +0000 (15:05 -0800)
commit61af43c56bef2cfcb8f1d9aab4e766e0f7bdd893
treee6f4ab65e7d88fdbd9fa30c6e5c92c48b9fb6d27
parentd28c2561fb09dcc0b47ae0ba12083cf0d988495f
rt2x00: Only update rssi average approximation on receiving beacon frames.

Restrict rssi average updating to beacon frames of the bssid the
interface is
associated with. Without this restriction, strong signals belonging to other
BSS, e.g. beacon frames coming from a nearby AP, would cause incorrectly high
rssi approximation values. This would then cause the link tuner to reduce
sensitivity, resulting in transmissions from the BSS associated to to be
missed.

Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00dev.c