]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Do not drop STA entry if PMF is used with full AP client state
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 29 Nov 2016 14:15:31 +0000 (16:15 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 29 Nov 2016 14:26:00 +0000 (16:26 +0200)
commit2ab09656ae53af3416765428df2bbba45fe1e60d
tree289db6d18c12ee24424f2459c735a4a1eb11115a
parentc85fcff2b16967951eab1351e78860e1445e44f2
AP: Do not drop STA entry if PMF is used with full AP client state

This fixes a regression from commit
bb598c3bdd0616f0c15e1a42e99591d8f3ff3323 ('AP: Add support for full
station state'). That commit added code to remove and re-add the kernel
STA entry when processing Authentication frames with a driver that
advertises support for full AP client state. That resulted in bypassing
PMF protections for unprotected Authentication frames with such drivers
since the TK was lost in this operation.

It is simplest to skip the STA entry clearing in this type of case
completely to leave the TK in place and to process the new
authentication exchange otherwise normally. This matches the behavior
used with the drivers that do not implement full AP client state.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ieee802_11.c