You are not logged in.

#1 2019-06-09 09:58:50

Jack_CM
Member
Registered: 2012-02-10
Posts: 55

MediaTek MT7630E connectivity breaks after connection

Hello, I am experiencing the exact same problem described here, although he is not the OP of the thread therefore I am starting a new post.

I am able to connect (I tried both Network Manager and manual wpa_supplicant + dhcpd) However, if I try some "heavy load", like trying to update the system, the connectivity simply breaks, i.e. I am not able to surf the web anymore. To get it working I have to shutdown and then power on, a simple reboot won't work.

Some info:

$ uname -r
5.1.7-arch1-1-ARCH


$ lspci -nnks 3:
03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
	Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e084]
	Kernel driver in use: mt76x0e
	Kernel modules: mt76x0e

$ modinfo mt76x0e
filename:       /lib/modules/5.1.7-arch1-1-ARCH/kernel/drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0e.ko.xz
license:        Dual BSD/GPL
firmware:       mediatek/mt7650e.bin
firmware:       mediatek/mt7610e.bin
srcversion:     07F07AD1C19C818C57AB6E7
alias:          pci:v000014C3d00007650sv*sd*bc*sc*i*
alias:          pci:v000014C3d00007630sv*sd*bc*sc*i*
depends:        mt76x02-lib,mt76,mt76x0-common,mac80211
retpoline:      Y
intree:         Y
name:           mt76x0e
vermagic:       5.1.7-arch1-1-ARCH SMP preempt mod_unload 

......

On a side note I d like to add that on the lts kermel (where the moules for this card are not provided) I am using the mt730-pcie-wifi-dkms modules found on the AUR and the card works properly


Please let me know if more information is required

Last edited by Jack_CM (2019-06-09 10:03:45)

Offline

#2 2019-06-09 10:09:21

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: MediaTek MT7630E connectivity breaks after connection

You could try the mt76-dkms-git package, maybe that works better. I believe this is the upstream driver and has patches that are not submitted to the kernel yet.

Last edited by progandy (2019-06-09 10:11:15)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2019-06-09 10:38:03

Jack_CM
Member
Registered: 2012-02-10
Posts: 55

Re: MediaTek MT7630E connectivity breaks after connection

Thanks for pointing this out.
Appearently, this pacakge conflicts with linux-firmware:

mt76-firmware-git: /usr/lib/firmware/mediatek/mt7615_cr4.bin exists in filesystem (owned by linux-firmware)
mt76-firmware-git: /usr/lib/firmware/mediatek/mt7615_n9.bin exists in filesystem (owned by linux-firmware)
mt76-firmware-git: /usr/lib/firmware/mediatek/mt7615_rom_patch.bin exists in filesystem (owned by linux-firmware)
Errors occurred, no packages were upgraded.

I thought it was safe to rename the original files (I hope I was right!) and so I did. Then another error popped up during the compiling:

(1/2) Install DKMS modules
==> dkms install mt76/r1466.b033532 -k 5.1.7-arch1-1-ARCH
Error! Bad return status for module build on kernel: 5.1.7-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/mt76/r1466.b033532/build/make.log for more information.

Therefore

cat /var/lib/dkms/mt76/r1466.b033532/build/make.log
DKMS make.log for mt76-r1466.b033532 for kernel 4.19.48-1-lts (x86_64)
Sun Jun  9 12:29:06 CEST 2019
make: Entering directory '/usr/lib/modules/4.19.48-1-lts/build'
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mmio.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/usb.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/usb_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/soc.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/pci_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/core.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/dma.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/beacon.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/debugfs.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_main.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mt7603e.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/util.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_mac.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0u.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0e.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0-common.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/trace.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/dma.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mac80211.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2-common.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2e.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/debugfs.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2u.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/eeprom.o
/var/lib/dkms/mt76/r1466.b033532/build/mac80211.c: In function 'mt76_check_sta':
/var/lib/dkms/mt76/r1466.b033532/build/mac80211.c:633:4: error: implicit declaration of function 'ieee80211_schedule_txq'; did you mean 'ieee80211_check_tim'? [-Werror=implicit-function-declaration]
    ieee80211_schedule_txq(dev->hw, sta->txq[i]);
    ^~~~~~~~~~~~~~~~~~~~~~
    ieee80211_check_tim
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:303: /var/lib/dkms/mt76/r1466.b033532/build/mac80211.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1517: _module_/var/lib/dkms/mt76/r1466.b033532/build] Error 2
make: Leaving directory '/usr/lib/modules/4.19.48-1-lts/build'

I am no C expert, therefore I do not know how to tackle this.

Edit: I just noticed that in the log files the lts kernel is mentioned, which is weird IMO

Edit2: please ignore the previous log file and refer to the following information:

# dkms install mt76/r1466.b033532 -k 5.1.7-arch1-1-ARCH

 

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.1.7-arch1-1-ARCH -C /usr/lib/modules/5.1.7-arch1-1-ARCH/build M=/var/lib/dkms/mt76/r1466.b033532/build NOSTDINC_FLAGS=-I/var/lib/dkms/mt76/r1466.b033532/build CONFIG_MT76_USB=m CONFIG_MT76x02_LIB=m CONFIG_MT76x02_USB=m CONFIG_MT76x0_COMMON=m CONFIG_MT76x0E=m CONFIG_MT76x0U=m CONFIG_MT76x2_COMMON=m CONFIG_MT76x2E=m CONFIG_MT76x2U=m CONFIG_MT7603E=m modules......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.1.7-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/mt76/r1466.b033532/build/make.log for more information.

$ cat /var/lib/dkms/mt76/r1466.b033532/build/make.log
DKMS make.log for mt76-r1466.b033532 for kernel 5.1.7-arch1-1-ARCH (x86_64)
Sun Jun  9 12:41:26 CEST 2019
make: Entering directory '/usr/lib/modules/5.1.7-arch1-1-ARCH/build'
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mmio.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/usb.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/util.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/usb_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mac.o
<command-line>: error: redeclaration of enumerator 'IEEE80211_HW_REPORTS_TX_ACK_STATUS'
<command-line>: note: in definition of macro 'IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN'
In file included from /var/lib/dkms/mt76/r1466.b033532/build/mt7603/../mt76.h:27,
                 from /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mt7603.h:8,
                 from /var/lib/dkms/mt76/r1466.b033532/build/mt7603/pci.c:7:
./include/net/mac80211.h:2265:2: note: previous definition of 'IEEE80211_HW_REPORTS_TX_ACK_STATUS' was here
  IEEE80211_HW_REPORTS_TX_ACK_STATUS,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:276: /var/lib/dkms/mt76/r1466.b033532/build/mt7603/pci.o] Error 1
make[1]: *** [scripts/Makefile.build:486: /var/lib/dkms/mt76/r1466.b033532/build/mt7603] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/pci_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_phy.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2-common.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2e.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/phy.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0u.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0e.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2u.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0-common.o
make: *** [Makefile:1571: _module_/var/lib/dkms/mt76/r1466.b033532/build] Error 2
make: Leaving directory '/usr/lib/modules/5.1.7-arch1-1-ARCH/build'

Last edited by Jack_CM (2019-06-09 10:45:28)

Offline

#4 2019-06-09 11:18:04

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: MediaTek MT7630E connectivity breaks after connection

Hmm, it seems like the detection of IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN does not work as intended.
As a quick hack you can remove this from probably /usr/src/mt76-???/mt7603/Makefile:

ifeq ($(call check-cc-enum,IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN,-include net/mac80211.h),n)
  EXTRA_CFLAGS += -DIEEE80211_HW_TX_STATUS_NO_AMPDU_LEN=IEEE80211_HW_REPORTS_TX_ACK_STATUS
endif

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2019-06-09 13:03:52

Jack_CM
Member
Registered: 2012-02-10
Posts: 55

Re: MediaTek MT7630E connectivity breaks after connection

I did as suggested:

/usr/src/mt76-r1466.b033532/mt7603$ cat Makefile 
EXTRA_CFLAGS += -Werror -DCONFIG_MT76_LEDS

CHECK_CC_ENUM_FLAGS = $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)
check-cc-enum = $(call try-run, echo "int v = $(1);" | $(CC) -Werror $(CHECK_CC_ENUM_FLAGS) $(2) -c -x c - -o "$$TMP",y,n)

# backwards compatibility hack
#ifeq ($(call check-cc-enum,IEEE80211_HW_TX_STATUS_NO_AMPDU_LEN,-include net/mac80211.h),n)
#  EXTRA_CFLAGS += -DIEEE80211_HW_TX_STATUS_NO_AMPDU_LEN=IEEE80211_HW_REPORTS_TX_ACK_STATUS
#endif

obj-m := mt7603e.o

mt7603e-y := \
	pci.o soc.o main.o init.o mcu.o \
	core.o dma.o mac.o eeprom.o \
	beacon.o debugfs.o

However I see the following error, which seems to refer to a different function:

# dkms install mt76/r1466.b033532 -k 5.1.7-arch1-1-ARCH

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.1.7-arch1-1-ARCH -C /usr/lib/modules/5.1.7-arch1-1-ARCH/build M=/var/lib/dkms/mt76/r1466.b033532/build NOSTDINC_FLAGS=-I/var/lib/dkms/mt76/r1466.b033532/build CONFIG_MT76_USB=m CONFIG_MT76x02_LIB=m CONFIG_MT76x02_USB=m CONFIG_MT76x0_COMMON=m CONFIG_MT76x0E=m CONFIG_MT76x0U=m CONFIG_MT76x2_COMMON=m CONFIG_MT76x2E=m CONFIG_MT76x2U=m CONFIG_MT7603E=m modules.........(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.1.7-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/mt76/r1466.b033532/build/make.log for more information.

$ cat /var/lib/dkms/mt76/r1466.b033532/build/make.log
DKMS make.log for mt76-r1466.b033532 for kernel 5.1.7-arch1-1-ARCH (x86_64)
Sun Jun  9 14:57:03 CEST 2019
make: Entering directory '/usr/lib/modules/5.1.7-arch1-1-ARCH/build'
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mmio.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/usb.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/soc.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/usb_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/pci_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/core.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/phy.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0u.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0e.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/dma.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_mcu.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x0/mt76x0-common.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/util.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/pci_phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/trace.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_init.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/eeprom.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_main.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/dma.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/beacon.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mac80211.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/usb_phy.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/debugfs.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2-common.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2e.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/debugfs.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x2/mt76x2u.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/eeprom.o
  LD [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt7603/mt7603e.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/tx.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/agg-rx.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x02_util.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x02_mac.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x02_mcu.o
  CC [M]  /var/lib/dkms/mt76/r1466.b033532/build/mt76x02_eeprom.o
In file included from /var/lib/dkms/mt76/r1466.b033532/build/mt76.h:27,
                 from /var/lib/dkms/mt76/r1466.b033532/build/mt76x02.h:23,
                 from /var/lib/dkms/mt76/r1466.b033532/build/mt76x02_util.c:19:
/var/lib/dkms/mt76/r1466.b033532/build/mt76x02_util.c: In function 'mt76x02_init_device':
./include/net/mac80211.h:2475:57: error: 'IEEE80211_HW_TX_NEEDS_ALIGNED4_SKBS' undeclared (first use in this function); did you mean 'IEEE80211_HW_SUPPORTS_CLONED_SKBS'?
 #define ieee80211_hw_set(hw, flg) _ieee80211_hw_set(hw, IEEE80211_HW_##flg)
                                                         ^~~~~~~~~~~~~
/var/lib/dkms/mt76/r1466.b033532/build/mt76x02_util.c:176:2: note: in expansion of macro 'ieee80211_hw_set'
  ieee80211_hw_set(hw, TX_NEEDS_ALIGNED4_SKBS);
  ^~~~~~~~~~~~~~~~
./include/net/mac80211.h:2475:57: note: each undeclared identifier is reported only once for each function it appears in
 #define ieee80211_hw_set(hw, flg) _ieee80211_hw_set(hw, IEEE80211_HW_##flg)
                                                         ^~~~~~~~~~~~~
/var/lib/dkms/mt76/r1466.b033532/build/mt76x02_util.c:176:2: note: in expansion of macro 'ieee80211_hw_set'
  ieee80211_hw_set(hw, TX_NEEDS_ALIGNED4_SKBS);
  ^~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:276: /var/lib/dkms/mt76/r1466.b033532/build/mt76x02_util.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1571: _module_/var/lib/dkms/mt76/r1466.b033532/build] Error 2
make: Leaving directory '/usr/lib/modules/5.1.7-arch1-1-ARCH/build'

Thank you for taking your time on this

Offline

#6 2019-06-09 13:28:40

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: MediaTek MT7630E connectivity breaks after connection

OpenWRT has a lot of custom patches in their kernel. It seems like it is currently impossible to build the module for another kernel. The necessary patch hasn't been accepted yet.

https://lore.kernel.org/linux-wireless/ … .name/t/#u


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2019-06-09 13:34:49

Jack_CM
Member
Registered: 2012-02-10
Posts: 55

Re: MediaTek MT7630E connectivity breaks after connection

oh I see. Therefore I could only wait for future releases, I guess, and hope to have an usable driver and in the meantime stick with the LTS kernel (hoping it wont switch to 5.x anytime soon).

Offline

Board footer

Powered by FluxBB