mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
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 <sherry.sun@nxp.com>
This commit is contained in:
parent
d88bd98445
commit
65ddf89682
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
if (moal_extflg_isset(handle, EXT_NAPI)) {
|
||||||
init_dummy_netdev(&handle->napi_dev);
|
init_dummy_netdev(&handle->napi_dev);
|
||||||
netif_napi_add(&handle->napi_dev, &handle->napi_rx,
|
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);
|
woal_netdev_poll_rx, NAPI_BUDGET);
|
||||||
|
#endif
|
||||||
napi_enable(&handle->napi_rx);
|
napi_enable(&handle->napi_rx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue