diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-06-28 22:43:22 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-06-28 22:43:22 +0200 |
commit | 1e03998e2b85e0250dd55da5146199a720e214af (patch) | |
tree | 367b69817837d786ee8ab01cc508746c7b84a2f5 /target | |
parent | 8d51706616bc23032b8afaa53733c08476c86211 (diff) | |
download | master-31e0f0ae-1e03998e2b85e0250dd55da5146199a720e214af.tar.gz master-31e0f0ae-1e03998e2b85e0250dd55da5146199a720e214af.tar.bz2 master-31e0f0ae-1e03998e2b85e0250dd55da5146199a720e214af.zip |
mac80211: fix skb size calculation in 4addr mode (FS#24)
The PDU length of incoming LLC frames is set to the total skb payload size
in __ieee80211_data_to_8023() of net/wireless/util.c which incorrectly
includes the length of the IEEE 802.11 header.
The resulting LLC frame header has a too large PDU length, causing the
llc_fixup_skb() function of net/llc/llc_input.c to reject the incoming
skb, effectively breaking STP.
Solve the problem by properly substracting the IEEE 802.11 frame header size
from the PDU length, allowing the LLC processor to pick up the incoming
control messages.
Special thanks to Gerry Rozema for tracking down the regression and proposing
a suitable patch.
Fixes FS#24.
References:
https://bugs.lede-project.org/index.php?do=details&task_id=24
Reported-by: Gerry Rozema <gerryr@rozeware.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions