Build fails when CONFIG_CFG80211 is not enabled

Bug #2007153 reported by Andrei Gherzan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rtl8812au (Ubuntu)
Fix Released
Medium
Andrei Gherzan

Bug Description

When CONFIG_CFG80211 is disabled, the build fails with:

error: ‘struct net_device’ has no member named ‘ieee80211_ptr’

This happens because there is an undefined dependency for this kernel module: CONFIG_CFG80211.

Upstream Kconfig doesn't reflect that dependency:

config RTL8812AU
    tristate "Realtek 8812A USB WiFi"
    depends on USB

dkms should avoid building if the targetted kernel doesn't come with CONFIG_CFG80211 enabled.

For reference, this was seen while running ADT for linux-kvm, 5.19.0-1019.20.

Tags: sru-20230130

Related branches

Changed in rtl8812au (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Andrei Gherzan (agherzan)
tags: added: sru-2023-01-30
Revision history for this message
Andrei Gherzan (agherzan) wrote :

I've also created a MR to fix the Kconfig in upstream: https://github.com/rsalveti/rtl8812au/pull/4

tags: added: sru-20230130
removed: sru-2023-01-30
Revision history for this message
Roxana Nicolescu (roxanan) wrote (last edit ):

Seen on jammy:linux-kvm 5.15.0-1029.34

It is not really the same error, but it is also caused by not checking if CONFIG_CFG80211 is enabled.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rtl8812au - 4.3.8.12175.20140902+dfsg-0ubuntu19

---------------
rtl8812au (4.3.8.12175.20140902+dfsg-0ubuntu19) lunar; urgency=medium

  * Add dh-sequence-dkms build-depends.
  * Bump debhelper-compat to 13.
  * Set rules-requires-root: no.
  * Set secure copyright file format URL.

rtl8812au (4.3.8.12175.20140902+dfsg-0ubuntu18) lunar; urgency=medium

  * rtl8812au-dkms.dkms: Avoid building when kernel config deps are not
    satisfied (LP: #2007153)

 -- Dimitri John Ledkov <email address hidden> Mon, 27 Feb 2023 10:42:35 +0000

Changed in rtl8812au (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.