diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-08-07 20:11:55 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-08-16 12:58:43 +0200 |
commit | 27b3eb9c06a7193bdc9800cd00764a130343bc8a (patch) | |
tree | d73ca7dfb8ccc2e967f4acf603c5bd52ca641db5 /net/mac80211/util.c | |
parent | mac80211: move ibss presp generation in own function (diff) | |
download | linux-27b3eb9c06a7193bdc9800cd00764a130343bc8a.tar.xz linux-27b3eb9c06a7193bdc9800cd00764a130343bc8a.zip |
mac80211: add APIs to allow keeping connections after WoWLAN
In order to be able to (securely) keep connections alive after
the system was suspended for WoWLAN, we need some additional
APIs. We already have API (ieee80211_gtk_rekey_notify) to tell
wpa_supplicant about the new replay counter if GTK rekeying
was done by the device while the host was asleep, but that's
not sufficient.
If GTK rekeying wasn't done, we need to tell the host about
sequence counters for the GTK (and PTK regardless of rekeying)
that was used while asleep, add ieee80211_set_key_rx_seq() for
that.
If GTK rekeying was done, then we need to be able to disable
the old keys (with ieee80211_remove_key()) and allocate the
new GTK key(s) in mac80211 (with ieee80211_gtk_rekey_add()).
If protocol offload (e.g. ARP) is implemented, then also the
TX sequence counter for the PTK must be updated, using the new
ieee80211_set_key_tx_seq() function.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index d23c5a705a68..e1b34a18b243 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1453,8 +1453,8 @@ int ieee80211_reconfig(struct ieee80211_local *local) local->resuming = true; if (local->wowlan) { - local->wowlan = false; res = drv_resume(local); + local->wowlan = false; if (res < 0) { local->resuming = false; return res; |