Skip to content

[BUG] dkms-mediatek-mt7927.noarch Failing to build #14074

Description

@xnuken

Full Raw Package Name (e.g. anda-0.4.14-1.fcrawhide.x86_64)

dkms-mediatek-mt7927-0:2.11-1.fc44.noarch

Release Version

f44

Describe the Bug

The package will fail to build on what appears to be on systems with kernel 7.1 or higher.

To Reproduce

  1. Install the dkms-mediatek-mt7927-0:2.11-1.fc44.noarch package on a system with kernel version 7.1 or higher.
  2. It will fail to properly build.

Expected Behavior

No response

Relevant Log Output

DKMS (dkms-3.4.1) make.log for mediatek-mt7927/2.11 for kernel 7.1.3-201.fc44.x86_64 (x86_64)
Fri 17 Jul 20:30:51 CEST 2026

Building module(s)
# command: if ! grep -q 'MT6639' /lib/modules/7.1.3-201.fc44.x86_64/build/drivers/bluetooth/btmtk.h 2>/dev/null; then make -C /lib/modules/7.1.3-201.fc44.x86_64/build M=/var/lib/dkms/mediatek-mt7927/2.11/build/drivers/bluetooth modules; fi && make -C /lib/modules/7.1.3-201.fc44.x86_64/build M=/var/lib/dkms/mediatek-mt7927/2.11/build/mt76 modules
make: Entering directory '/usr/src/kernels/7.1.3-201.fc44.x86_64'
make[1]: Entering directory '/var/lib/dkms/mediatek-mt7927/2.11/build/drivers/bluetooth'
warning: pahole version differs from the one used to build the kernel
  The kernel was built with: 130
  You are using:             0
  CC [M]  btusb.o
  CC [M]  btmtk.o
  MODPOST Module.symvers
  CC [M]  btusb.mod.o
  CC [M]  .module-common.o
  LD [M]  btusb.ko
  BTF [M] btusb.ko
Skipping BTF generation for btusb.ko due to unavailability of vmlinux
  CC [M]  btmtk.mod.o
  LD [M]  btmtk.ko
  BTF [M] btmtk.ko
Skipping BTF generation for btmtk.ko due to unavailability of vmlinux
make[1]: Leaving directory '/var/lib/dkms/mediatek-mt7927/2.11/build/drivers/bluetooth'
make: Leaving directory '/usr/src/kernels/7.1.3-201.fc44.x86_64'
make: Entering directory '/usr/src/kernels/7.1.3-201.fc44.x86_64'
make[1]: Entering directory '/var/lib/dkms/mediatek-mt7927/2.11/build/mt76'
warning: pahole version differs from the one used to build the kernel
  The kernel was built with: 130
  You are using:             0
  CC [M]  mmio.o
  CC [M]  util.o
  CC [M]  trace.o
  CC [M]  dma.o
  CC [M]  mac80211.o
  CC [M]  debugfs.o
  CC [M]  eeprom.o
  CC [M]  tx.o
  CC [M]  agg-rx.o
  CC [M]  mcu.o
  CC [M]  wed.o
  CC [M]  scan.o
  CC [M]  channel.o
  CC [M]  pci.o
  LD [M]  mt76.o
  CC [M]  mt76_connac_mcu.o
  CC [M]  mt76_connac_mac.o
mt76_connac_mac.c: In function ‘mt76_connac2_mac_write_txwi_80211’:
mt76_connac_mac.c:416:25: error: ‘IEEE80211_MIN_ACTION_SIZE’ undeclared (first use in this function)
  416 |             skb->len >= IEEE80211_MIN_ACTION_SIZE + 1 + 1 + 2 &&
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
mt76_connac_mac.c:416:25: note: ‘IEEE80211_MIN_ACTION_SIZE’ is a function-like macro and might be used incorrectly
mt76_connac_mac.c:416:25: note: each undeclared identifier is reported only once for each function it appears in
mt76_connac_mac.c:418:27: error: ‘struct <anonymous>’ has no member named ‘u’
  418 |             mgmt->u.action.u.addba_req.action_code == WLAN_ACTION_ADDBA_REQ) {
      |                           ^
In file included from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/linux/byteorder/little_endian.h:5,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/arch/x86/include/uapi/asm/byteorder.h:5,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/asm-generic/qrwlock_types.h:6,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/arch/x86/include/asm/spinlock_types.h:7,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/linux/spinlock_types_raw.h:7,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/linux/ratelimit_types.h:7,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/linux/printk.h:9,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/asm-generic/bug.h:31,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/arch/x86/include/asm/bug.h:193,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/arch/x86/include/asm/alternative.h:9,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/arch/x86/include/asm/barrier.h:5,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/asm-generic/bitops/generic-non-atomic.h:7,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/linux/bitops.h:28,
                 from /usr/src/kernels/7.1.3-201.fc44.x86_64/include/linux/kernel.h:23,
                 from mt76.h:9,
                 from mt76_connac.h:7,
                 from mt76_connac_mac.c:4:
mt76_connac_mac.c:419:55: error: ‘struct <anonymous>’ has no member named ‘u’
  419 |                 u16 capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab);
      |                                                       ^
/usr/src/kernels/7.1.3-201.fc44.x86_64/include/uapi/linux/byteorder/little_endian.h:37:51: note: in definition of macro ‘__le16_to_cpu’
   37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
      |                                                   ^
mt76_connac_mac.c:419:29: note: in expansion of macro ‘le16_to_cpu’
  419 |                 u16 capab = le16_to_cpu(mgmt->u.action.u.addba_req.capab);
      |                             ^~~~~~~~~~~
make[3]: *** [/usr/src/kernels/7.1.3-201.fc44.x86_64/scripts/Makefile.build:289: mt76_connac_mac.o] Error 1
make[2]: *** [/usr/src/kernels/7.1.3-201.fc44.x86_64/Makefile:2189: .] Error 2
make[1]: *** [/usr/src/kernels/7.1.3-201.fc44.x86_64/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/mediatek-mt7927/2.11/build/mt76'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/kernels/7.1.3-201.fc44.x86_64'

# exit code: 2
# elapsed time: 00:00:10
----------------------------------------------------------------

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions