641-bridge_always_accept_eap.patch 515 B

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