From f8499430928a860957b77e38feef4265c8f0d9ee Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Sat, 9 Oct 2021 10:35:21 +0800 Subject: [PATCH] mxm_wifiex: fix the wrong ndo_siocdevprivate function for woal_uap_netdev_ops ndo_siocdevprivate should use woal_uap_do_ioctl instead of woal_do_ioctl in woal_uap_netdev_ops struct. Signed-off-by: Sherry Sun Approved-by: Tian Yang --- mxm_wifiex/wlan_src/mlinux/moal_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_main.c b/mxm_wifiex/wlan_src/mlinux/moal_main.c index 822c450..0d385dc 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_main.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_main.c @@ -4071,7 +4071,7 @@ const struct net_device_ops woal_uap_netdev_ops = { .ndo_start_xmit = woal_hard_start_xmit, .ndo_stop = woal_close, #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0) - .ndo_siocdevprivate = woal_do_ioctl, + .ndo_siocdevprivate = woal_uap_do_ioctl, #else .ndo_do_ioctl = woal_uap_do_ioctl, #endif