From 6cd2e46745638287302bf439e523d7ffd74d5987 Mon Sep 17 00:00:00 2001 From: Manuel Colmenero Date: Wed, 16 Aug 2017 20:49:58 +0200 Subject: [PATCH] Fix for Linux kernel 4.12.5 Prevents error "initialization from incompatible pointer type". See: https://patchwork.kernel.org/patch/9684967/ --- os_dep/linux/ioctl_cfg80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 6246f14..e24dc3e 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -1895,7 +1895,7 @@ enum nl80211_iftype { */ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, struct net_device *ndev, - enum nl80211_iftype type, u32 *flags, + enum nl80211_iftype type, struct vif_params *params) { enum nl80211_iftype old_type; @@ -4051,7 +4051,7 @@ static int #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)) unsigned char name_assign_type, #endif - enum nl80211_iftype type, u32 *flags, struct vif_params *params) + enum nl80211_iftype type, struct vif_params *params) { int ret = 0; struct net_device* ndev = NULL;