kernel: update kernel 3.18 to version 3.18.23
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-3.18 / 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 @@ -84,7 +84,7 @@ int br_handle_frame_finish(struct sk_buf
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;