/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c:2522:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
2522 | struct cfg80211_scan_info info;
| ^~~~~~
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c: At top level:
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c:6890:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
6890 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c:6890:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c:7121:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
7121 | if (wdev->current_bss) {
| ^~
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_change_iface’:
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c:1843:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
1843 | is_p2p = _TRUE;
/usr/src/realtek-rtl8723cs-0.0~git20210902.0fb0c24/os_dep/linux/ioctl_cfg80211.c:1845:9: note: here
1845 | case NL80211_IFTYPE_STATION:
| ^~~~