xtknight / mt7610u-linksys-ae6000-wifi-fixes

Trying to fix the MT7610U chipset driver by MediaTek so it's usable on modern Linux kernels and with nl80211/NetworkManager (and not completely breaking on old ones, maybe...)
187 stars 71 forks source link

Compile Errors on 4.19.0-kali4-amd64 #1 SMP Debian 4.19.28-2kali1 (2019-03-18) x86_64 #47

Open gjdunga opened 5 years ago

gjdunga commented 5 years ago

A whole bunch of errors on redeclaration of enumerator ‘IEEE80211RADIOTAP*’ (All of the different flags) I'm assuming it's coming from ../../os/linux/rt_profile.c:28: I'm attaching the make log. ae6000.txt

The device lists as a 0e8d:7610 MediaTek Inc.
Willing to open this piece of garbage to verify chipsets.

JackHunt commented 5 years ago

I am also having this issue on Gentoo, Kernel 4.19.27.

v01tag3 commented 5 years ago

Same on Alpine, Kernel 4.19.51-0-vanilla. Any idea how to solve issue?

bridgeQiao commented 5 years ago

My kernel is 4.19.49-1-MANJARO. When I commet enum _ieee80211_radiotaptype in mt7610u-linksys-ae6000-wifi-fixes/include/rtmp.h, near 7119 line, code can be compiled. After code modification, the compile results are as follows, the final part:

  CC [M]  /home/**/Downloads/mt7610u-linksys-ae6000-wifi-fixes/os/linux/../../common/frq_cal.o
  LD [M]  /home/**/Downloads/mt7610u-linksys-ae6000-wifi-fixes/os/linux/mt7610u_sta.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/**/Downloads/mt7610u-linksys-ae6000-wifi-fixes/os/linux/mt7610u_sta.mod.o
  LD [M]  /home/**/Downloads/mt7610u-linksys-ae6000-wifi-fixes/os/linux/mt7610u_sta.ko
make[1]: Leaving directory '/usr/lib/modules/4.19.49-1-MANJARO/build'
cp -f /home/**/Downloads/mt7610u-linksys-ae6000-wifi-fixes/os/linux/mt7610u_sta.ko /tftpboot 2>/dev/null || :

It may conflict with the new kernel headers at include/net/ieee80211_radiotap.h.

tcdtech commented 4 years ago

I had exactly the same issue. With the above modification to rtmp.h I am now able to compile successfully.

Adapter: 0e8d:7610 MediaTek Inc. Device: Raspberry Pi 3b+ Kernel: Linux 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux