nl80211: Ignore "DEAUTH" messages from APs we are not associated to
authorPaul Stewart <pstew@google.com>
Mon, 16 Aug 2010 18:27:26 +0000 (21:27 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 Aug 2010 18:27:26 +0000 (21:27 +0300)
commitcb30b297bd79ac82d9cbb192dc90b783974750cd
tree904420bd542d6566e49e8fa5dd9bc1d72808d0d7
parent6c78ae1443f8bf80f290d9672e0510d4b248aa57
nl80211: Ignore "DEAUTH" messages from APs we are not associated to

DEAUTH messages can come from a number of different sources. The one
that's hurting us currently is DEAUTH netlink messages coming to us
from compat-wireless in response to local_state_change DEAUTH messages
we sent as a part of cleaning up state in driver_nl80211's
clear_state_mismatch() function. However, DEAUTH messages can come
from a variety of unwanted sources, including directed denial-of-service
attacks (although MAC verification doesn't place that high a barrier),
so this validation is actually generically useful, I think.

The downside to this method is that without a kernel based approach
"iw dev wlan0 link" no longer works correctly after clear_state_mismatch()
is done.  This will be pursued with the kernel folks.
src/drivers/driver_nl80211.c