mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
qca-nss-clients: add required wifili symbol
This commit is contained in:
parent
53162cdf9c
commit
7080d89470
@ -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
|
||||
|
||||
60
qca-nss-clients/patches/0024-match-switch-to-wifili.patch
Normal file
60
qca-nss-clients/patches/0024-match-switch-to-wifili.patch
Normal file
@ -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 {
|
||||
Loading…
Reference in New Issue
Block a user