cilynx / rtl88x2BU_WiFi_linux_v5.2.4.4_26334.20180126_COEX20171012-5044

rtl88x2bu driver updated for modern kernels.
http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
GNU General Public License v2.0
59 stars 19 forks source link

Just some further cleanup #1

Closed MaxG87 closed 5 years ago

MaxG87 commented 6 years ago

I hope that the commit messages are self explanatory. These are minor cleanup commits. Some bugs are fixed by them.

MaxG87 commented 6 years ago

Hi,

what about merging this? It would be cool as it would resolve some lurking problems.

Thanks.

mabrand commented 5 years ago

gcc 8.2:

In function ‘strncpy’, inlined from ‘rtw_wx_set_enc_ext’ at /var/lib/dkms/rtl88x2bu/5.2.4.4/build/os_dep/linux/ioctl_linux.c:3556:2: ./include/linux/string.h:246:9: error: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation] return __builtin_strncpy(p, q, size); ^~~~~~~~~

mabrand commented 5 years ago

and: /var/lib/dkms/rtl88x2bu/5.2.4.4/build/hal/hal_hci/hal_usb.c: In function ‘usb_init_recv_priv’: /var/lib/dkms/rtl88x2bu/5.2.4.4/build/hal/hal_hci/hal_usb.c:28:8: error: cast between incompatible function types from ‘void ()(void )’ to ‘void ()(long unsigned int)’ [-Werror=cast-function-type] (void()(unsigned long))usb_recv_tasklet,