From a4d36065f6c659f38881c8438a4d83cb605fc56e Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Sun, 2 Jun 2024 19:38:54 -0400 Subject: [PATCH] qca-nss-drv: allow mac80211 to disable signal redirection Added from brainslayer's patch here: https://svn.dd-wrt.com/changeset/56322 Signed-off-by: Sean Khan --- qca-nss-drv/Makefile | 2 +- ...-nss-drv-mac80211-disable-signal-redirection.patch | 11 +++++++++++ ...-nss-drv-mac80211-disable-signal-redirection.patch | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 qca-nss-drv/patches-11.4/0019-nss-drv-mac80211-disable-signal-redirection.patch create mode 100644 qca-nss-drv/patches/0019-nss-drv-mac80211-disable-signal-redirection.patch diff --git a/qca-nss-drv/Makefile b/qca-nss-drv/Makefile index 633f33a..af557aa 100644 --- a/qca-nss-drv/Makefile +++ b/qca-nss-drv/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=qca-nss-drv -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/nss-drv.git PKG_SOURCE_PROTO:=git diff --git a/qca-nss-drv/patches-11.4/0019-nss-drv-mac80211-disable-signal-redirection.patch b/qca-nss-drv/patches-11.4/0019-nss-drv-mac80211-disable-signal-redirection.patch new file mode 100644 index 0000000..62e1fe4 --- /dev/null +++ b/qca-nss-drv/patches-11.4/0019-nss-drv-mac80211-disable-signal-redirection.patch @@ -0,0 +1,11 @@ +--- a/nss_virt_if.c ++++ b/nss_virt_if.c +@@ -450,6 +450,8 @@ EXPORT_SYMBOL(nss_virt_if_create_sync_ne + */ + struct nss_virt_if_handle *nss_virt_if_create_sync(struct net_device *netdev) + { ++ if (!nss_ctl_redirect) ++ return NULL; + /* + * NSS_N2H_INTERFACE is the nexthop of the dynamic interface which is created for handling the + * n2h traffic. diff --git a/qca-nss-drv/patches/0019-nss-drv-mac80211-disable-signal-redirection.patch b/qca-nss-drv/patches/0019-nss-drv-mac80211-disable-signal-redirection.patch new file mode 100644 index 0000000..62e1fe4 --- /dev/null +++ b/qca-nss-drv/patches/0019-nss-drv-mac80211-disable-signal-redirection.patch @@ -0,0 +1,11 @@ +--- a/nss_virt_if.c ++++ b/nss_virt_if.c +@@ -450,6 +450,8 @@ EXPORT_SYMBOL(nss_virt_if_create_sync_ne + */ + struct nss_virt_if_handle *nss_virt_if_create_sync(struct net_device *netdev) + { ++ if (!nss_ctl_redirect) ++ return NULL; + /* + * NSS_N2H_INTERFACE is the nexthop of the dynamic interface which is created for handling the + * n2h traffic.