]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/ieee802_11.c
AP: Drop retransmitted auth/assoc/action frames
authorIlan Peer <ilan.peer@intel.com>
Wed, 5 Nov 2014 08:50:34 +0000 (03:50 -0500)
committerJouni Malinen <j@w1.fi>
Wed, 19 Nov 2014 13:20:47 +0000 (15:20 +0200)
commit38cb0a2db69cb46a4d6e5eb7671a4cfe0578ffb1
treec99591c594318d3f362c32dc052a43b267a0e0b8
parent453553698c21d6fcc80499e34664128a47de6a36
AP: Drop retransmitted auth/assoc/action frames

It is possible that a station device might miss an ACK for an
authentication, association, or action frame, and thus retransmit the
same frame although the frame is already being processed in the stack.
While the duplicated frame should really be dropped in the kernel or
firmware code where duplicate detection is implemented for data frames,
it is possible that pre-association cases are not fully addressed (which
is the case at least with mac80211 today) and the frame may be delivered
to upper layer stack.

In such a case, the local AP will process the retransmitted frame although
it has already handled the request, which might cause the station to get
confused and as a result disconnect from the AP, blacklist it, etc.

To avoid such a case, save the sequence control of the last processed
management frame and in case of retransmissions drop them.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/ap/ieee802_11.c
src/ap/sta_info.c
src/ap/sta_info.h
src/common/ieee802_11_defs.h