fragattacks/src
Jouni Malinen fa67debf4c Fix duplicate Reassociation Request frame dropping
Relational operators (==) have higher precedence than the ternary
conditional in C. The last_subtype check for association/reassociation
was broken due to incorrect assumption about the precedence. Fix this by
adding parenthesis around the ternary conditional.

The previous implementation worked for Association Request frames by
accident since WLAN_FC_STYPE_ASSOC_REQ happens to have value 0 and when
the last receive frame was an Association Request frame, the
sta->last_subtype == reassoc check was true and non-zero
WLAN_FC_STYPE_REASSOC_REQ was interpreted as true. However, this was
broken for Reassociation Request frame. reassoc == 1 in that case could
have matched received Association Response frame (subtype == 1), but
those are not received in AP mode and as such, this did not break other
behavior apart from not being able to drop duplicated Reassociation
Request frames.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2017-01-14 01:04:31 +02:00
..
ap Fix duplicate Reassociation Request frame dropping 2017-01-14 01:04:31 +02:00
common FILS: Fix PMK and PMKID derivation from ERP 2017-01-13 21:07:40 +02:00
crypto OpenSSL: Implement sha384_vector() 2017-01-13 21:05:19 +02:00
drivers wext: Cancel send_rfkill timeout in deinit 2017-01-14 00:07:45 +02:00
eap_common Remove trailing whitespace 2016-12-28 14:31:42 +02:00
eap_peer Remove trailing whitespace 2016-12-28 14:31:42 +02:00
eap_server Remove trailing whitespace 2016-12-28 14:31:42 +02:00
eapol_auth RADIUS: Share a single function for generating session IDs 2016-02-06 17:19:35 +02:00
eapol_supp Remove trailing whitespace 2016-12-28 14:31:42 +02:00
fst FST: Fix search for peer's "other" connection 2016-09-08 11:17:45 +03:00
l2_packet Remove trailing whitespace 2016-12-28 14:31:42 +02:00
p2p P2P: Fix compilation warning in p2p_add_device() 2016-12-30 00:49:24 +02:00
pae mka: Make MKA actor priority configurable 2016-12-25 11:41:46 +02:00
radius Remove trailing whitespace 2016-12-28 14:31:42 +02:00
rsn_supp FILS: Fix PMK and PMKID derivation from ERP 2017-01-13 21:07:40 +02:00
tls Remove trailing whitespace 2016-12-28 14:31:42 +02:00
utils tests: TEST_FAIL() support for os_get_random() 2017-01-07 22:15:41 +02:00
wps Share a single str_starts() implementation 2016-08-06 12:38:21 +03:00
lib.rules Add QUIET=1 option for make 2014-12-29 15:49:05 +02:00
Makefile FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00