--- zzzz-none-000/linux-4.1.52/net/packet/af_packet.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/net/packet/af_packet.c 2022-03-02 11:37:14.000000000 +0000 @@ -2692,6 +2692,7 @@ { struct packet_sock *po = pkt_sk(sk); struct net_device *dev_curr; + __be16 proto_curr; bool need_rehook; struct net_device *dev = NULL; @@ -2747,6 +2748,8 @@ BUG_ON(po->running); po->num = proto; po->prot_hook.type = proto; +#if !defined(CONFIG_BCM_KF_MISC_BACKPORTS) +#endif if (unlikely(unlisted)) { dev_put(dev);