kernel: update kernel 4.4 to version 4.4.3
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 641-bridge_always_accept_eap.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Subject: [PATCH] bridge: always accept EAP
3
4 Allow EAP frames to pass through bridges even in learning state. Fixes
5 issues with WDS.
6 ---
7 --- a/net/bridge/br_input.c
8 +++ b/net/bridge/br_input.c
9 @@ -152,7 +152,7 @@ int br_handle_frame_finish(struct net *n
10 br_multicast_rcv(br, p, skb, vid))
11 goto drop;
12
13 - if (p->state == BR_STATE_LEARNING)
14 + if ((p->state == BR_STATE_LEARNING) && skb->protocol != htons(ETH_P_PAE))
15 goto drop;
16
17 BR_INPUT_SKB_CB(skb)->brdev = br->dev;