]> git.ipfire.org Git - thirdparty/hostap.git/commit
PASN: Fix Authentication frame checks
authorJouni Malinen <j@w1.fi>
Sun, 6 Nov 2022 09:42:58 +0000 (11:42 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 6 Nov 2022 09:42:58 +0000 (11:42 +0200)
commit8481c7509197e0ff6b2b4cf371fbbebc0cca09ae
treedd3168e0b778ba39287b72152477dc18863b870e
parentf899d7f3781008f6cb5c7e67e95d1e112e7b7b1e
PASN: Fix Authentication frame checks

The way type and subtype of the FC field was checked does not really
work correctly. Fix those to check all bits of the subfields. This does
not really make any practical difference, though, since the caller was
already checking this.

Furthermore, use a helper function to avoid having to maintain two
copies of this same functionality.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/pasn/pasn_initiator.c