Help with rtl8812au WiFi driver in Centos 7.7

Issues related to hardware problems
NickH
Posts: 11
Joined: 2018/03/14 15:26:12

Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/28 10:13:17

I am trying to find driver for rtl8812au NIC (edited lsusb.py: "1-1.4 0bda:a811 00 2.10 480MBit/s 500mA 1IFs (Realtek 802.11ac WLAN Adapter 00e04c000001)"). I have tried using sources such as https://github.com/cccooo/rtl8812au-cen ... ree/v5.3.4 and https://github.com/abperiasamy/rtl8812AU_8821AU_linux compiling with make/make install but I always seem to get errors during the make. Has anyone got some working drivers or sources or can anyone give me some help to compile one of these?

As an example, with the cccooo drivers I get:

Code: Select all

[root@7 rtl8812au]# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.10.0-1062.1.1.el7.x86_64/build M=/usr/src/rtl8812au O="" modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64'
  CC [M]  /usr/src/rtl8812au/core/rtw_pwrctrl.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_pwrctrl.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_pwrctrl.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_rf.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_rf.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_rf.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_recv.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_recv.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_recv.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_sta_mgt.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_sta_mgt.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_sta_mgt.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_ap.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_ap.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_ap.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/mesh/rtw_mesh.o
  CC [M]  /usr/src/rtl8812au/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /usr/src/rtl8812au/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /usr/src/rtl8812au/core/rtw_xmit.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_xmit.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_xmit.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_p2p.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_p2p.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_p2p.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_rson.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_rson.c:22:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_rson.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_tdls.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_tdls.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_tdls.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_br_ext.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/skbuff.h:33,
                 from include/linux/if_arp.h:26,
                 from /usr/src/rtl8812au/core/rtw_br_ext.c:18:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
In file included from include/net/ip.h:31:0,
                 from /usr/src/rtl8812au/core/rtw_br_ext.c:19:
include/net/route.h: In function ‘ip_route_output’:
include/net/route.h:138:3: warning: missing initializer for field ‘flowic_iif’ of ‘struct flowi_common’ [-Wmissing-field-initializers]
   .flowi4_tos = tos,
   ^
In file included from include/linux/skbuff.h:41:0,
                 from include/linux/if_arp.h:26,
                 from /usr/src/rtl8812au/core/rtw_br_ext.c:18:
include/net/flow.h:23:6: note: ‘flowic_iif’ declared here
  int flowic_iif;
      ^
In file included from include/net/ip.h:31:0,
                 from /usr/src/rtl8812au/core/rtw_br_ext.c:19:
include/net/route.h:139:3: warning: missing initializer for field ‘flowic_scope’ of ‘struct flowi_common’ [-Wmissing-field-initializers]
   .daddr = daddr,
   ^
In file included from include/linux/skbuff.h:41:0,
                 from include/linux/if_arp.h:26,
                 from /usr/src/rtl8812au/core/rtw_br_ext.c:18:
include/net/flow.h:26:7: note: ‘flowic_scope’ declared here
  __u8 flowic_scope;
       ^
/usr/src/rtl8812au/core/rtw_br_ext.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_iol.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_iol.c:16:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_iol.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_sreset.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_sreset.c:16:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_sreset.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_btcoex_wifionly.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_btcoex_wifionly.c:15:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_btcoex_wifionly.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_btcoex.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_btcoex.c:15:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_btcoex.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_beamforming.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_beamforming.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_beamforming.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_odm.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/include/rtw_odm.h:18,
                 from /usr/src/rtl8812au/core/rtw_odm.c:16:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_odm.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_rm.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_rm.c:16:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_rm.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/rtw_rm_fsm.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/rtw_rm_fsm.c:16:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/rtw_rm_fsm.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/core/efuse/rtw_efuse.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/core/efuse/rtw_efuse.c:17:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/core/efuse/rtw_efuse.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
  CC [M]  /usr/src/rtl8812au/os_dep/osdep_service.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au/include/osdep_service_linux.h:30,
                 from /usr/src/rtl8812au/include/osdep_service.h:54,
                 from /usr/src/rtl8812au/include/drv_types.h:27,
                 from /usr/src/rtl8812au/os_dep/osdep_service.c:19:
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
/usr/src/rtl8812au/os_dep/osdep_service.c: In function ‘call_read_iter’:
/usr/src/rtl8812au/os_dep/osdep_service.c:27:19: error: ‘const struct file_operations’ has no member named ‘read_iter’
  return file->f_op->read_iter(kio, iter);
                   ^
/usr/src/rtl8812au/os_dep/osdep_service.c: At top level:
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default]
make[2]: *** [/usr/src/rtl8812au/os_dep/osdep_service.o] Error 1
make[1]: *** [_module_/usr/src/rtl8812au] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64'
make: *** [modules] Error 2
I have checked at ElRepo and they do not appear to have a compatible driver.

anglican
Posts: 31
Joined: 2015/06/11 08:30:33

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by anglican » 2019/10/30 08:22:46

Getting that driver to compile against a 3.10.0 kernel is way beyond my skill-set. But, if you're prepared to run an elrepo kernel it will compile. I'd use their kernel-lt (long-term support) but the mainline kernel would also work (kernel-ml). To install you just need:

Code: Select all


# yum install https://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm

# yum --enablerepo=elrepo-kernel install kernel-lt kernel-lt-devel

Then after re-booting in to the new kernel:

Code: Select all


$ make

$ sudo make install

Should work. There are still a few compiler warnings, most of which are due to the relatively old gcc version in CentOS 7 (4.8.5). You could also install a newer toolchain from software collections which will get rid of all the 'unrecognized command line option "-Wno-date-time"' warnings.

anglican
Posts: 31
Joined: 2015/06/11 08:30:33

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by anglican » 2019/10/30 14:54:17

Actually much easier to fix than I thought! The following diff does the trick:

Code: Select all

220c220
< ifeq ($REDHAT_VER, 7.6)
---
> ifeq ($REDHAT_VER, 7.7)
I used the first of the two links in the original message.

NickH
Posts: 11
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/30 15:51:00

Mine still fails:

Code: Select all

make[2]: *** [/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [_module_/usr/src/rtl8812au-cccooo] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.1.2.el7.x86_64'
make: *** [modules] Error 2
I wonder if I am missing a dependency.

anglican
Posts: 31
Joined: 2015/06/11 08:30:33

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by anglican » 2019/10/31 08:48:35

Mine still fails:
CODE: SELECT ALL

Code: Select all

make[2]: *** [/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [_module_/usr/src/rtl8812au-cccooo] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.1.2.el7.x86_64'
make: *** [modules] Error 2
I wonder if I am missing a dependency.
I doubt it, could you show the full set of errors so we can see why it failed?

NickH
Posts: 11
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/31 09:09:23

The full make log is in the first post (but the error message points to a slightly different folder as I have renamed my folders to track all the different versions of the driver I have tried)

anglican
Posts: 31
Joined: 2015/06/11 08:30:33

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by anglican » 2019/10/31 09:26:55

Are you, by any chance, changing more than one line in the Makefile? The line that follows the one I indicated to change:

Code: Select all

EXTRA_CFLAGS += -DREDHAT_76
Should not be changed or it will cause the compilation to fail.

NickH
Posts: 11
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/31 09:48:17

No I changed the single line:

Code: Select all

REDHAT_VER := $(shell cut -f4 -d" " /etc/redhat-release |cut -d"." -f1,2 )
ifeq ($(REDHAT_VER), 7.7)
EXTRA_CFLAGS += -DREDHAT_76
endif
In case they are different, the most recent compile log:

Code: Select all

[root@7 rtl8812au-cccooo]# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.10.0-1062.1.2.el7.x86_64/build M=/usr/src/rtl8812au-cccooo  modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-1062.1.2.el7.x86_64'
  CC [M]  /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.o
In file included from include/linux/fs.h:9:0,
                 from include/linux/huge_mm.h:5,
                 from include/linux/mm.h:437,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dmaengine.h:27,
                 from include/linux/netdevice.h:39,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:3 ,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/linux/path.h: In function ‘path_put_init’:
include/linux/path.h:23:18: warning: missing initializer for field ‘mnt’ of ‘struct path’ [-Wmissing-field-initializers]
  *path = (struct path) { };
                  ^
include/linux/path.h:8:19: note: ‘mnt’ declared here
  struct vfsmount *mnt;
                   ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_intf.h:129:0,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:105,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: At top level:
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:382:27: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)
 #define NL80211_BAND_2GHZ IEEE80211_BAND_2GHZ
                           ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:112:13: note: in expansion of macro ‘NL80211_BAND_2GHZ’
   .band   = NL80211_BAND_2GHZ,  \
             ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:168:2: note: in expansion of macro ‘CHAN2G’
  CHAN2G(1, 2412, 0),
  ^
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:383:27: error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function)
 #define NL80211_BAND_5GHZ IEEE80211_BAND_5GHZ
                           ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:121:13: note: in expansion of macro ‘NL80211_BAND_5GHZ’
   .band   = NL80211_BAND_5GHZ,  \
             ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:186:2: note: in expansion of macro ‘CHAN5G’
  CHAN5G(36, 0), CHAN5G(40, 0), CHAN5G(44, 0), CHAN5G(48, 0),
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_spt_band_alloc’:
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:389:27: error: ‘IEEE80211_NUM_BANDS’ undeclared (first use in this function)
 #define NUM_NL80211_BANDS IEEE80211_NUM_BANDS
                           ^
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:395:45: note: in expansion of macro ‘NUM_NL80211_BANDS’
  (band == BAND_ON_5G) ? NL80211_BAND_5GHZ : NUM_NL80211_BANDS
                                             ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:488:19: note: in expansion of macro ‘rtw_band_to_nl80211_band’
  spt_band->band = rtw_band_to_nl80211_band(band);
                   ^
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:389:27: note: each undeclared identifier is reported only once for each function it appears in
 #define NUM_NL80211_BANDS IEEE80211_NUM_BANDS
                           ^
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:395:45: note: in expansion of macro ‘NUM_NL80211_BANDS’
  (band == BAND_ON_5G) ? NL80211_BAND_5GHZ : NUM_NL80211_BANDS
                                             ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:488:19: note: in expansion of macro ‘rtw_band_to_nl80211_band’
  spt_band->band = rtw_band_to_nl80211_band(band);
                   ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ibss_indicate_connect’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1013:2: warning: passing argument 3 of ‘cfg80211_ibss_joined’ makes pointer from integer without a cast [enabled by default]
  cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC);
  ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:4993:6: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘unsigned int’
 void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1013:2: error: too few arguments to function ‘cfg80211_ibss_joined’
  cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC);
  ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:4993:6: note: declared here
 void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1120:4: warning: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type [enabled by default]
    , GFP_ATOMIC);
    ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:5505:6: note: expected ‘struct cfg80211_roam_info *’ but argument is of type ‘struct ieee80211_channel *’
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1120:4: warning: passing argument 3 of ‘cfg80211_roamed’ makes integer from pointer without a cast [enabled by default]
    , GFP_ATOMIC);
    ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:5505:6: note: expected ‘gfp_t’ but argument is of type ‘unsigned char *’
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1120:4: error: too many arguments to function ‘cfg80211_roamed’
    , GFP_ATOMIC);
    ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:5505:6: note: declared here
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_disconnect’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1200:12: error: ‘struct wireless_dev’ has no member named ‘sme_state’
   if (pwdev->sme_state == CFG80211_SME_CONNECTING) {
            ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1200:27: error: ‘CFG80211_SME_CONNECTING’ undeclared (first use in this function)
   if (pwdev->sme_state == CFG80211_SME_CONNECTING) {
                           ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1204:19: error: ‘struct wireless_dev’ has no member named ‘sme_state’
   } else if (pwdev->sme_state == CFG80211_SME_CONNECTED) {
                   ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1204:34: error: ‘CFG80211_SME_CONNECTED’ undeclared (first use in this function)
   } else if (pwdev->sme_state == CFG80211_SME_CONNECTED) {
                                  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1206:4: error: too few arguments to function ‘cfg80211_disconnected’
    rtw_cfg80211_disconnected(pwdev, reason, NULL, 0, locally_generated, GFP_ATOMIC);
    ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:5521:6: note: declared here
 void cfg80211_disconnected(struct net_device *dev, u16 reason,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_get_station’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2241:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_SIGNAL;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2244:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_TX_BITRATE;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2255:20: error: ‘STATION_INFO_INACTIVE_TIME’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_INACTIVE_TIME;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2257:20: error: ‘STATION_INFO_RX_PACKETS’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_RX_PACKETS;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2259:20: error: ‘STATION_INFO_TX_PACKETS’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_TX_PACKETS;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2261:20: error: ‘STATION_INFO_TX_FAILED’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_TX_FAILED;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_scan_done’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:2472:4: error: incompatible type for argument 2 of ‘cfg80211_scan_done’
    cfg80211_scan_done(pwdev_priv->scan_request, aborted);
    ^
In file included from /usr/src/rtl8812au-cccooo/include/osdep_service_linux.h:93:0,
                 from /usr/src/rtl8812au-cccooo/include/osdep_service.h:50,
                 from /usr/src/rtl8812au-cccooo/include/drv_types.h:27,
                 from /usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:1 :
include/net/cfg80211.h:4628:6: note: expected ‘struct cfg80211_scan_info *’ but argument is of type ‘bool’
 void cfg80211_scan_done(struct cfg80211_scan_request *request,
      ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_sta_assoc’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:4127:18: error: ‘STATION_INFO_ASSOC_REQ_IES’ undeclared (first use in this function)
   sinfo.filled = STATION_INFO_ASSOC_REQ_IES;
                  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_dump_station’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:5499:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_SIGNAL;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:5501:20: error: ‘STATION_INFO_INACTIVE_TIME’ undeclared (first use in this function)
   sinfo->filled |= STATION_INFO_INACTIVE_TIME;
                    ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_get_channel’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:5571:5: warning: enumeration value ‘CHANNEL_WIDTH_5’ not handled in switch [-Wswitch]
     switch(pHalData->current_channel_bw){
     ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:5571:5: warning: enumeration value ‘CHANNEL_WIDTH_10’ not handled in switch [-Wswitch]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_preinit_wiphy’:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9240:18: error: ‘WIPHY_FLAG_SUPPORTS_SCHED_SCAN’ undeclared (first use in this function)
  wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
                  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9251:16: error: incompatible types when assigning to type ‘const struct wiphy_wowlan_support *’ from type ‘const struct wiphy_wowlan_support’
  wiphy->wowlan = wowlan_stub;
                ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c: At top level:
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9466:2: warning: initialization from incompatible pointer type [enabled by default]
  .change_virtual_intf = cfg80211_rtw_change_iface,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9466:2: warning: (near initialization for ‘rtw_cfg80211_ops.change_virtual_intf’) [enabled by default]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9477:2: warning: initialization from incompatible pointer type [enabled by default]
  .get_station = cfg80211_rtw_get_station,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9477:2: warning: (near initialization for ‘rtw_cfg80211_ops.get_station’) [enabled by default]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9492:2: warning: initialization from incompatible pointer type [enabled by default]
  .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9492:2: warning: (near initialization for ‘rtw_cfg80211_ops.add_virtual_intf’) [enabled by default]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9509:2: warning: initialization from incompatible pointer type [enabled by default]
  .add_station = cfg80211_rtw_add_station,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9509:2: warning: (near initialization for ‘rtw_cfg80211_ops.add_station’) [enabled by default]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9510:2: warning: initialization from incompatible pointer type [enabled by default]
  .del_station = cfg80211_rtw_del_station,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9510:2: warning: (near initialization for ‘rtw_cfg80211_ops.del_station’) [enabled by default]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9511:2: warning: initialization from incompatible pointer type [enabled by default]
  .change_station = cfg80211_rtw_change_station,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9511:2: warning: (near initialization for ‘rtw_cfg80211_ops.change_station’) [enabled by default]
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9555:2: warning: initialization from incompatible pointer type [enabled by default]
  .mgmt_tx = cfg80211_rtw_mgmt_tx,
  ^
/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.c:9555:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default]
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
make[2]: *** [/usr/src/rtl8812au-cccooo/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [_module_/usr/src/rtl8812au-cccooo] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.1.2.el7.x86_64'
make: *** [modules] Error 2

anglican
Posts: 31
Joined: 2015/06/11 08:30:33

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by anglican » 2019/10/31 10:34:34

OK, just to be clear, the exact procedure I used was:

Code: Select all

As a normal user, in my home directory:

$ git clone https://github.com/cccooo/rtl8812au-centos-7.6.git
$ cd rtl8812au-centos-7.6

Edit the Makefile line 220 to show 7.7

$ make
For me that compiles fine. Then you can "make install" (as root) and modprobe the module to get the wifi working.

NickH
Posts: 11
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/31 10:55:29

Mine was effectively the same. From my bash history:

Code: Select all

  990  cd /usr/src
  991  git clone https://github.com/cccooo/rtl8812au-centos-7.6.git rtl8812au-cccooo
  992  cd rtl8812au-cccooo/
  993  make
 
I use WinSCP to do the edit so it does not show in my history.

Post Reply

Return to “CentOS 7 - Hardware Support”