From 7080d8947079ddcc531d103e07d9e51dd8462976 Mon Sep 17 00:00:00 2001 From: Qosmio Date: Mon, 19 Feb 2024 03:01:56 -0500 Subject: [PATCH] qca-nss-clients: add required wifili symbol --- qca-nss-clients/Makefile | 2 +- .../patches/0024-match-switch-to-wifili.patch | 60 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 qca-nss-clients/patches/0024-match-switch-to-wifili.patch diff --git a/qca-nss-clients/Makefile b/qca-nss-clients/Makefile index c89a928..b3cd4bf 100644 --- a/qca-nss-clients/Makefile +++ b/qca-nss-clients/Makefile @@ -494,7 +494,7 @@ define KernelPackage/qca-nss-drv-match SECTION:=kernel CATEGORY:=Kernel modules SUBMENU:=Network Devices - DEPENDS:=+@NSS_DRV_MATCH_ENABLE \ + DEPENDS:=+@NSS_DRV_MATCH_ENABLE +@NSS_DRV_WIFIOFFLOAD_ENABLE \ +kmod-qca-nss-drv TITLE:=NSS Match for QCA NSS driver FILES:=$(PKG_BUILD_DIR)/match/qca-nss-match.ko diff --git a/qca-nss-clients/patches/0024-match-switch-to-wifili.patch b/qca-nss-clients/patches/0024-match-switch-to-wifili.patch new file mode 100644 index 0000000..e466f5b --- /dev/null +++ b/qca-nss-clients/patches/0024-match-switch-to-wifili.patch @@ -0,0 +1,60 @@ +--- a/match/nss_match_cmd.c ++++ b/match/nss_match_cmd.c +@@ -460,10 +460,10 @@ static int nss_match_cmd_procfs_reset_ne + char *cmd_buf = nss_match_data; + nss_tx_status_t nss_tx_status; + struct nss_ctx_instance *nss_ctx = nss_match_get_context(); +- struct nss_ctx_instance *wifi_nss_ctx = nss_wifi_get_context(); ++ struct nss_ctx_instance *wifili_nss_ctx = nss_wifi_get_context(); + +- if (!nss_ctx || !wifi_nss_ctx) { +- pr_warn("%px: NSS Context not found. wifi_nss_ctx: %px. Reset nexthop failed", nss_ctx, wifi_nss_ctx); ++ if (!nss_ctx || !wifili_nss_ctx) { ++ pr_warn("%px: NSS Context not found. wifili_nss_ctx: %px. Reset nexthop failed", nss_ctx, wifili_nss_ctx); + return -ENOMEM; + } + +@@ -495,9 +495,9 @@ static int nss_match_cmd_procfs_reset_ne + * nss_phys_if_reset_nexthop: Used for physical interfaces. + * nss_if_reset_nexthop: used for VAP interfaces. + */ +- type = nss_dynamic_interface_get_type(wifi_nss_ctx, if_num); ++ type = nss_dynamic_interface_get_type(wifili_nss_ctx, if_num); + if (type == NSS_DYNAMIC_INTERFACE_TYPE_VAP) { +- nss_tx_status = nss_if_reset_nexthop(wifi_nss_ctx, if_num); ++ nss_tx_status = nss_if_reset_nexthop(wifili_nss_ctx, if_num); + } else if (if_num < NSS_MAX_PHYSICAL_INTERFACES) { + nss_tx_status = nss_phys_if_reset_nexthop(nss_ctx, if_num); + } else { +@@ -528,7 +528,7 @@ static int nss_match_cmd_procfs_set_if_n + uint32_t nh_if_num; + int table_id; + struct nss_ctx_instance *nss_ctx = nss_match_get_context(); +- struct nss_ctx_instance *wifi_nss_ctx = nss_wifi_get_context(); ++ struct nss_ctx_instance *wifili_nss_ctx = nss_wifi_get_context(); + char *dev_name, *nexthop_msg; + char *cmd_buf = NULL; + size_t count = *lenp; +@@ -539,8 +539,8 @@ static int nss_match_cmd_procfs_set_if_n + return ret; + } + +- if (!nss_ctx || !wifi_nss_ctx) { +- pr_warn("%px: NSS Context not found. wifi_nss_ctx: %px. Set nexthop failed", nss_ctx, wifi_nss_ctx); ++ if (!nss_ctx || !wifili_nss_ctx) { ++ pr_warn("%px: NSS Context not found. wifili_nss_ctx: %px. Set nexthop failed", nss_ctx, wifili_nss_ctx); + return -ENOMEM; + } + +@@ -607,9 +607,9 @@ static int nss_match_cmd_procfs_set_if_n + * nss_phys_if_set_nexthop: Used for physical interfaces. + * nss_if_set_nexthop: used for VAP interfaces. + */ +- type = nss_dynamic_interface_get_type(wifi_nss_ctx, if_num); ++ type = nss_dynamic_interface_get_type(wifili_nss_ctx, if_num); + if (type == NSS_DYNAMIC_INTERFACE_TYPE_VAP) { +- nss_tx_status = nss_if_set_nexthop(wifi_nss_ctx, if_num, nh_if_num); ++ nss_tx_status = nss_if_set_nexthop(wifili_nss_ctx, if_num, nh_if_num); + } else if (if_num < NSS_MAX_PHYSICAL_INTERFACES) { + nss_tx_status = nss_phys_if_set_nexthop(nss_ctx, if_num, nh_if_num); + } else {