hostap/src/fst
Dedy Lansky 071e3bf116 FST: Fix handling of Rx FST Setup Request when session already exists
When we receive FST Setup Request when session already exists, the
following validations take place:
1. we drop the frame if needed according to MAC comparison
2. we drop the frame if the session is "not pending", i.e., if FST
   Setup Response was already exchanged (sent or received).

There are two issues with the above:
1. MAC comparison is relevant only before the Setup Response exchange.
   In other words, Setup Request should not be dropped due to MAC
   comparison after Setup Response has been exchanged.
2. Receiving Setup Request after Setup Response exchange most likely
   means that FST state machine is out of sync with the peer. Dropping
   the Setup Request will not help solve this situation.

The fix is:
1. do MAC comparison only if session is "pending", i.e., Setup Response
   was not yet exchanged.
2. In case Setup Response was already exchanged, reset our session and
   handle the Setup Request as if it arrived when session doesn't exist.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-12-29 18:41:35 +02:00
..
fst.c FST: Make FST peer connection check more permissive in hostapd 2015-11-25 17:30:59 +02:00
fst.h FST: Mark fst_ies buffer const 2015-08-03 17:40:30 +03:00
fst_ctrl_aux.c FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00
fst_ctrl_aux.h FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00
fst_ctrl_defs.h FST: Testing support 2015-07-16 18:26:16 +03:00
fst_ctrl_iface.c FST: Make FST peer connection check more permissive in hostapd 2015-11-25 17:30:59 +02:00
fst_ctrl_iface.h FST: Replace print_mb_ies() with wpa_snprintf_hex() 2015-07-18 17:23:55 +03:00
fst_defs.h FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00
fst_group.c FST: Make FST peer connection check more permissive in hostapd 2015-11-25 17:30:59 +02:00
fst_group.h FST: Fix dialog token wrap-around 2015-07-26 18:12:08 +03:00
fst_iface.c FST: Make FST peer connection check more permissive in hostapd 2015-11-25 17:30:59 +02:00
fst_iface.h FST: Make FST peer connection check more permissive in hostapd 2015-11-25 17:30:59 +02:00
fst_internal.h FST: Make fst_hw_mode_to_band() non-inline function 2015-07-26 18:45:14 +03:00
fst_session.c FST: Fix handling of Rx FST Setup Request when session already exists 2015-12-29 18:41:35 +02:00
fst_session.h FST: Testing support 2015-07-16 18:26:16 +03:00
Makefile FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00