From 1305b2dc4b02c1e661c0f64ab47ee385cfa21eec Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 15 Feb 2015 12:07:44 -0600 Subject: [PATCH] rtl8188eu: Fix build warning for kernels 3.16-3.18 Signed-off-by: Larry Finger --- os_dep/ioctl_cfg80211.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c index 30a527c..3fb830d 100755 --- a/os_dep/ioctl_cfg80211.c +++ b/os_dep/ioctl_cfg80211.c @@ -3929,9 +3929,12 @@ static int cfg80211_rtw_add_station(struct wiphy *wiphy, struct net_device *ndev return 0; } -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)) static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev, u8 *mac) +#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3,19, 0)) +static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev, + const u8 *mac) #else static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev, struct station_del_parameters *params)