]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[net80211] handle action frames in adhoc mode from the node that created the BSS.
authoradrian <adrian@FreeBSD.org>
Thu, 28 Apr 2016 20:29:49 +0000 (20:29 +0000)
committeradrian <adrian@FreeBSD.org>
Thu, 28 Apr 2016 20:29:49 +0000 (20:29 +0000)
commiteb4ff9318a20dba1dcb83a149ebf9416037b620d
treee39ccba2cf271a635d0da7775818da04593951ee
parent586d106e191628e927b30d43c75a8684094fe6e6
[net80211] handle action frames in adhoc mode from the node that created the BSS.

We don't have a separate bss node; instead we dup the first node we saw
and turn that into the BSS node.  This means that action frames from
that node would be rejected.

So, check that the node is the bss node /and/ the MAC doesn't match ni_macaddr.
That's the "right" way for now to verify it's an unknown node.

This fixes handling action frames in adhoc mode, which includes negotiating
11n aggregation via ADDBA/DELBA.

This by itself isn't enough to correctly create 11n adhoc networks; but
it is required for aggregation to be negotiated.

Tested:

* AR9380, 11n adhoc mode
* broadcom 11ac adhoc (vendor platform)

Sponsored by: Eva Automation, Inc.
sys/net80211/ieee80211_adhoc.c