RADIUS DAS: Check for single session match for Disconnect-Request
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 16 Jan 2015 10:10:52 +0000 (12:10 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 16 Jan 2015 10:50:16 +0000 (12:50 +0200)
commit861beb7269946b9b940b6233ebaae19d6ee3cdf0
tree46691b89bb4c9d0d20f0fcdd76795ce9bc8228c2
parent201c9ad77f180e0f015bb4b9ce9ddb550d0d7820
RADIUS DAS: Check for single session match for Disconnect-Request

Previously, the first matching STA was picked. That is not really the
design in RFC 5176, so extend this matching code to go through all
specified session identification attributes and verify that all of them
match. In addition, check for a possible case of multiple sessions
matching. If such a case is detected, return with Disconnect-NAK and
Error-Code 508 (multiple session selection not supported).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/hostapd.c
src/ap/sta_info.h
src/radius/radius_das.c
src/radius/radius_das.h