]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: allow driver to disconnect after resume
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 Jul 2011 10:30:59 +0000 (12:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Jul 2011 18:49:43 +0000 (14:49 -0400)
commitcc7b92af6cd078415309d6fd8248002b5b36df84
tree8a1737bc3a2ca8af0031e1c2cda07608965ad282
parentb8a4e7571126de2c427923fe57f9e46d885c13b5
mac80211: allow driver to disconnect after resume

In WoWLAN, devices may use crypto keys for TX/RX
and could also implement GTK rekeying. If the
driver isn't able to retrieve replay counters and
similar information from the device upon resume,
or if the device isn't responsive due to platform
issues, it isn't safe to keep the connection up
as GTK rekey messages from during the sleep time
could be replayed against it.

The only protection against that is disconnecting
from the AP. Modifying mac80211 to do that while
it is resuming would be very complex and invasive
in the case that the driver requires a reconfig,
so do it after it has resumed completely. In that
case, however, packets might be replayed since it
can then only happen after TX/RX are up again, so
mark keys for interfaces that need to disconnect
as "tainted" and drop all packets that are sent
or received with those keys.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/key.h
net/mac80211/mlme.c
net/mac80211/rx.c
net/mac80211/tx.c
net/mac80211/util.c