lwfinger / rtl8723bu

Driver for RTL8723BU
285 stars 145 forks source link

fix incompatible pointer type for kernel 4.1.x #54

Closed bmx666 closed 7 years ago

bmx666 commented 7 years ago
--- a/os_dep/ioctl_cfg80211.c
+++ b/os_dep/ioctl_cfg80211.c
@@ -3672,7 +3672,7 @@ static int
        #else
                char *name,
        #endif
-       #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+       #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)
@@ -4095,7 +4095,7 @@ static struct sta_info *rtw_sta_info_get_by_idx(const int idx, struct sta_priv *
 }

 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)) || \
-    (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0))
+    (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
 static int     cfg80211_rtw_dump_station(struct wiphy *wiphy, struct net_device *ndev,
                               int idx, u8 *mac, struct station_info *sinfo)
 #else
lwfinger commented 7 years ago

Thanks. I just pushed the fix.