wil6210: check integrity of received AMSDU packets
BugLink: https://bugs.launchpad.net/bugs/1931727 Check integrity of received AMSDU packet, 802.11ad QoS spec requires that AMSDU frame contains only MSDUs whose destination address (DA) and sender address (SA) parameter values map to the same receiver address (RA) and transmitter address (TA) values. wil6210 Talyn HW does not check this before it cuts the AMSDU frame into multiple received MSDU packets. Adding checks to wil6210 driver to enforce spec compliance behavior by checking all AMSDU sub frames if it complies with the following: 1- On AP, check packet SA is its client mac address, and on Client check that the DA is the local mac address. If not drop the packet 2- if AMSDU sub frame was dropped on item 1, drop all next sub frame of the AMSDU by checking it has same sn/tid. This patch drops all WDS frames before it checks valid AMSDU, WDS includes supporting MAC header with 4 addresses which is not supported yet, moreover, WDS implies different validity checks on AMSDU frame. Change-Id: I71a39f95c034f05023e0e7ae3ffb5d2b4f8c6b24 Signed-off-by:Ahmad Masri <amasri@codeaurora.org> (cherry picked from commit 0642afe119a09255a286ee1d1655c071a16e1142) Signed-off-by:
Shrirang Bagul <shrirang.bagul@canonical.com>
Loading
Please sign in to comment