From 65ddf89682aff2eca9c485bbb78226581e7241d2 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Mon, 10 Oct 2022 15:16:48 +0800 Subject: [PATCH] mxm_wifiex: fix the build errors with the API changes on next-20220930 kernel tag b48b89f9c189 ("net: drop the weight argument from netif_napi_add") patch in upstream kernel change the netif_napi_add API, so corresponding functions used in wifi driver also need to be changed to avoid build break. Now this API change is based on the next-20220930 kernel tag. Signed-off-by: Sherry Sun --- mxm_wifiex/wlan_src/mlinux/moal_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_main.c b/mxm_wifiex/wlan_src/mlinux/moal_main.c index 0e1ee59..98ac94c 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_main.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_main.c @@ -10393,7 +10393,11 @@ moal_handle *woal_add_card(void *card, struct device *dev, moal_if_ops *if_ops, if (moal_extflg_isset(handle, EXT_NAPI)) { init_dummy_netdev(&handle->napi_dev); netif_napi_add(&handle->napi_dev, &handle->napi_rx, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) + woal_netdev_poll_rx); +#else woal_netdev_poll_rx, NAPI_BUDGET); +#endif napi_enable(&handle->napi_rx); }