X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0151-brcmfmac-Disable-ARP-offloading-when-promiscuous.patch;fp=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0151-brcmfmac-Disable-ARP-offloading-when-promiscuous.patch;h=0000000000000000000000000000000000000000;hb=2d899a69e71ae9d24146ee88195d1a1d48ff5179;hp=037700bfe6c178bc0cc7a6664377fe474701dc6c;hpb=fb19fb868cf5f1426ada869e4ad5b139a41ba78e;p=openwrt%2Fopenwrt.git diff --git a/target/linux/brcm2708/patches-4.19/950-0151-brcmfmac-Disable-ARP-offloading-when-promiscuous.patch b/target/linux/brcm2708/patches-4.19/950-0151-brcmfmac-Disable-ARP-offloading-when-promiscuous.patch deleted file mode 100644 index 037700bfe6..0000000000 --- a/target/linux/brcm2708/patches-4.19/950-0151-brcmfmac-Disable-ARP-offloading-when-promiscuous.patch +++ /dev/null @@ -1,68 +0,0 @@ -From 87b707ed572548b3d332c327df5df9455dd98ca7 Mon Sep 17 00:00:00 2001 -From: Phil Elwell -Date: Thu, 24 Aug 2017 16:16:16 +0100 -Subject: [PATCH 151/806] brcmfmac: Disable ARP offloading when promiscuous - -This is a test patch for brcmfmac from Franky Lin at Broadcom to disable -ARP offloading when in promiscuous mode, re-enabling the ability to -sniff ARP packets over WiFi. - -See: https://github.com/raspberrypi/linux/issues/2171 - -Signed-off-by: Phil Elwell ---- - .../net/wireless/broadcom/brcm80211/brcmfmac/core.c | 11 ++++++----- - .../net/wireless/broadcom/brcm80211/brcmfmac/core.h | 1 + - 2 files changed, 7 insertions(+), 5 deletions(-) - ---- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c -@@ -88,25 +88,25 @@ void brcmf_configure_arp_nd_offload(stru - if (err) { - brcmf_dbg(TRACE, "failed to set ARP offload mode to 0x%x, err = %d\n", - mode, err); -+ err = 0; - } else { - err = brcmf_fil_iovar_int_set(ifp, "arpoe", enable); - if (err) { - brcmf_dbg(TRACE, "failed to configure (%d) ARP offload err = %d\n", - enable, err); -- } else { -+ err = 0; -+ } else - brcmf_dbg(TRACE, "successfully configured (%d) ARP offload to 0x%x\n", - enable, mode); -- } - } - - err = brcmf_fil_iovar_int_set(ifp, "ndoe", enable); -- if (err) { -+ if (err) - brcmf_dbg(TRACE, "failed to configure (%d) ND offload err = %d\n", - enable, err); -- } else { -+ else - brcmf_dbg(TRACE, "successfully configured (%d) ND offload to 0x%x\n", - enable, mode); -- } - } - - static void _brcmf_set_multicast_list(struct work_struct *work) -@@ -172,6 +172,7 @@ static void _brcmf_set_multicast_list(st - if (err < 0) - brcmf_err("Setting BRCMF_C_SET_PROMISC failed, %d\n", - err); -+ - brcmf_configure_arp_nd_offload(ifp, !cmd_value); - } - ---- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h -@@ -210,6 +210,7 @@ char *brcmf_ifname(struct brcmf_if *ifp) - struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx); - void brcmf_configure_arp_nd_offload(struct brcmf_if *ifp, bool enable); - int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked); -+void brcmf_configure_arp_nd_offload(struct brcmf_if *ifp, bool enable); - struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx, - bool is_p2pdev, const char *name, u8 *mac_addr); - void brcmf_remove_interface(struct brcmf_if *ifp, bool rtnl_locked);