Re: r311871: kernel build failure: ieee80211_vht.c:94:2: error: implicit declaration ...

From: O. Hartmann <o.hartmann_at_walstatt.org>
Date: Tue, 10 Jan 2017 19:35:55 +0100
Am Tue, 10 Jan 2017 11:32:00 +0100
"O. Hartmann" <ohartmann_at_walstatt.org> schrieb:

> On CURRENT (r311871), I'm bothered with this error schown below. Buildkernel
> fails. It is a customized kernel.
> 
> [...]
> Building /usr/obj/usr/src/sys/FREYJA/modules/usr/src/sys/modules/wlan/ieee80211.o
> Building /usr/obj/usr/src/sys/FREYJA/modules/usr/src/sys/modules/wlan/ieee80211_vht.o
> /usr/src/sys/modules/wlan/../../net80211/ieee80211_vht.c:94:2: error: implicit
> declaration of function 'ieee80211_note' is invalid in C99
> [-Werror,-Wimplicit-function-declaration] ieee80211_note(ni->ni_vap, "%s:
> called; fc=0x%.2x/0x%.2x", ^ 1 error generated.
> *** Error code 1
> 
> Kind regards,
> 
> oh


The problem can be avoided by enabling WiFi infrastructure in the kernel:

I have these lines in those boxes which build the kernel in common:

# Wireless NIC cards
device      wlan            # 802.11 support
options     IEEE80211_DEBUG     # enable debug msgs
options     IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options     IEEE80211_SUPPORT_MESH  # enable 802.11s draft support
options     IEEE80211_SUPPORT_TDMA  #enable TDMA support
device      wlan_wep        # 802.11 WEP support
device      wlan_ccmp       # 802.11 CCMP support
device      wlan_tkip       # 802.11 TKIP support
device      wlan_amrr       # AMRR transmit rate control algorithm
device      ath         # Atheros NICs
device      ath_pci         # Atheros pci/cardbus glue
device      ath_hal         # pci/cardbus chip support
options     AH_SUPPORT_AR5416   # enable AR5416 tx/rx descriptors
options     AH_AR5416_INTERRUPT_MITIGATION # AR5416 interrupt mitigation
options     ATH_ENABLE_11N      # Enable 802.11n support for AR5416 and later
device      ath_rate_sample     # SampleRate tx rate control for ath


-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).

Received on Tue Jan 10 2017 - 17:36:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC