mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 08:15:33 +00:00
mxm_wifiex: fix the build error on kernel higher than L5.12
The parameters in cfg80211_unregister_netdevice function is wrong, will cause the build error on kernel higher than L5.12. Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Approved-by: Tian Yang <yang.tian@nxp.com>
This commit is contained in:
parent
f849943092
commit
2d93593f86
1 changed files with 2 additions and 2 deletions
|
@ -1859,7 +1859,7 @@ int woal_cfg80211_del_virt_if(struct wiphy *wiphy, struct net_device *dev)
|
|||
priv->phandle->priv_num--;
|
||||
if (dev->reg_state == NETREG_REGISTERED)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
|
||||
cfg80211_unregister_netdevice(ndev);
|
||||
cfg80211_unregister_netdevice(dev);
|
||||
#else
|
||||
unregister_netdevice(dev);
|
||||
#endif
|
||||
|
@ -1902,7 +1902,7 @@ void woal_remove_virtual_interface(moal_handle *handle)
|
|||
if (priv->netdev->reg_state ==
|
||||
NETREG_REGISTERED)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
|
||||
cfg80211_unregister_netdevice(ndev);
|
||||
cfg80211_unregister_netdevice(priv->netdev);
|
||||
#else
|
||||
unregister_netdevice(priv->netdev);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue