]> git.ipfire.org Git - thirdparty/hostap.git/commit
TDLS: Fix key configuration with current mac80211
authorJouni Malinen <j@w1.fi>
Wed, 3 Apr 2013 15:39:10 +0000 (18:39 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 3 Apr 2013 15:39:10 +0000 (18:39 +0300)
commit75fa7d19a4893df18a77427f43789b2922cf353e
tree8cb4c4a3eb3f367dac2aaf4fdfc57efd9600d11b
parent88c8bf311efa4eb64468bed9b41b3110ab9effff
TDLS: Fix key configuration with current mac80211

A kernel commit ("mac80211: fix FT roaming") started validating that the
STA entry is marked associated when adding a key. While this is needed
to fix some FT use cases with hardware crypto, it has a side effect of
breaking TDLS key configuration. Work around this by trying to
re-configure the key for the direct link after the STA entry has been
set with all information. In addition, try to tear down the link if
anything goes wrong in key configuration (if both attempts fail) or
enabling the link in the driver.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/rsn_supp/tdls.c