]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reject frames in STA mode which are not destined to the local STA address.
authorAdrian Chadd <adrian@FreeBSD.org>
Tue, 8 Nov 2011 14:28:33 +0000 (14:28 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Tue, 8 Nov 2011 14:28:33 +0000 (14:28 +0000)
commit38672d482598d8db5cb8f9ef36f8f38ee575f661
treec34edfdf9c48c22a1e5eab1dc3567f85d5d31354
parentdd21aaf873afb1e61ade58d290d8762c5127d090
Reject frames in STA mode which are not destined to the local STA address.

Some hardware (eg the AR9160 in STA mode) seems to "leak" unicast FROMDS
frames which aren't destined to itself. This angers the net80211 stack -
the existing code would fail to find an address in the node table and try
passing the frame up to each vap BSS. It would then be accepted in the
input routine and its contents would update the local crypto and sequence
number state.

If the sequence number / crypto IV replay counters from the leaked frame
were greater than the "real" state, subsequent "real" frames would be
rejected due to out of sequence / IV replay conditions.

This is also likely helpful if/when multi-STA modes are added to net80211.

Sponsored by: Hobnob, Inc.
sys/net80211/ieee80211_sta.c