generic: add linux 4.1 support
[openwrt.git] / target / linux / generic / patches-4.1 / 640-bridge_no_eap_forward.patch
1 --- a/net/bridge/br_input.c
2 +++ b/net/bridge/br_input.c
3 @@ -162,7 +162,11 @@ int br_handle_frame_finish(struct sock *
4         if (IS_ENABLED(CONFIG_INET) && skb->protocol == htons(ETH_P_ARP))
5                 br_do_proxy_arp(skb, br, vid, p);
6  
7 -       if (is_broadcast_ether_addr(dest)) {
8 +       if (skb->protocol == htons(ETH_P_PAE)) {
9 +               skb2 = skb;
10 +               /* Do not forward 802.1x/EAP frames */
11 +
12 +       } else if (is_broadcast_ether_addr(dest)) {
13                 skb2 = skb;
14                 unicast = false;
15         } else if (is_multicast_ether_addr(dest)) {