lwfinger / rtl8723bu

Driver for RTL8723BU
284 stars 144 forks source link

Minor changes to make it compile under 3.19 #4

Closed richiejp closed 9 years ago

richiejp commented 9 years ago

Just a couple of changes to make it compile under kernel 3.19. It still produces the following warnings, but I can't figure out why because the function signatures appear to be correct:

/home/developer/drivers/rtl8723bu/os_dep/ioctl_cfg80211.c:6060:2: warning: initialization from incompatible pointer type
  .scan = cfg80211_rtw_scan,
  ^
/home/developer/drivers/rtl8723bu/os_dep/ioctl_cfg80211.c:6060:2: warning: (near initialization for ‘rtw_cfg80211_ops.get_station’)
/home/developer/drivers/rtl8723bu/os_dep/ioctl_cfg80211.c:6089:2: warning: initialization from incompatible pointer type
  .change_station = cfg80211_rtw_change_station,
  ^
/home/developer/drivers/rtl8723bu/os_dep/ioctl_cfg80211.c:6089:2: warning: (near initialization for ‘rtw_cfg80211_ops.del_station’)
/home/developer/drivers/rtl8723bu/os_dep/ioctl_cfg80211.c:6091:2: warning: initialization from incompatible pointer type
  .change_bss = cfg80211_rtw_change_bss,
  ^
/home/developer/drivers/rtl8723bu/os_dep/ioctl_cfg80211.c:6091:2: warning: (near initialization for ‘rtw_cfg80211_ops.dump_station’)
lwfinger commented 9 years ago

Those warnings could be ignored, at least for the moment. They arise because kernel 3.16 changed the "u8 * mac" argument to "const u8 *mac". I will commit code to fix them.