HW: late2009 iMac9 Intel Core2duo 8GBRAM nVidia9400GeForce Bcm94322
OS: FreeBSD12.2
my dmesg output of interest:
bwn_pci0: <Broadcom BCM4322 802.11n Dual-Band Wireless> mem 0xd3200000-0xd3203fff at device 0.0 on pci4
bhndb0: <PCI-BHND bridge> on bwn_pci0
bhndb0: Using MSI interrupts on bwn_pci0
bhnd_nvram0: <SPROM/OTP> mem 0xd3201000-0xd3201fff on bhndb0
bhnd0: <BCM4322 SIBA bus> on bhndb0
bhnd_chipc0: <Broadcom ChipCommon I/O Controller, rev 23> mem 0x18000000-0x18000dff,0xffff0000-0xffffffff,0x1c000000-0x1dffffff,0x18000f00-0x18000fff,0x1800
0e00-0x18000eff irq 0 at core 0 on bhnd0
bhnd_pmu0: <Broadcom ChipCommon PMU, rev 2> on bhnd_chipc0
gpio0: <Broadcom ChipCommon GPIO> mem 0x18000000-0x18000dff on bhnd_chipc0
bhnd_hostb0: <Broadcom PCIe-G1 Host-PCI bridge, rev 11> mem 0x18002000-0x18002dff,0-0x7fffffff,0x18002f00-0x18002fff,0x18002e00-0x18002eff irq 2 at core 2 o
n bhnd0
bhnd0: <Broadcom Internal Memory, rev 3> mem 0x18006000-0x18006dff,0x1e000000-0x1e01ffff,0x18006f00-0x18006fff,0x18006e00-0x18006eff at core 6 (no driver at
tached)
bhnd0: <Broadcom unknown, rev 0> mem 0x18005000-0x18005dff,0x18005f00-0x18005fff,0x18005e00-0x18005eff irq 5 at core 5 (no driver attached)
bwn0: <Broadcom 802.11 MAC/PHY/Radio, rev 16> mem 0x18001000-0x18001dff,0x18001f00-0x18001fff,0x18001e00-0x18001eff irq 1 at core 1 on bhnd0
bwn0: bwn_phy_n_attach: BWN_GPL_PHY not in kernel config; no PHY-N support
bwn0: failed
device_attach: bwn0 attach returned 6
and so no wlan0 either.
So I made these changes to my CUSTOM kernel config file and un-commented the indicated lines in the bwn/Makefile and get the following:
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_rate_sample # SampleRate tx rate control for ath
device bwi # Broadcom BCM430x/BCM431x wireless NICs.
device bwn # Broadcom BCM43xx wireless NICs.
option BWN_DEBUG
option BWN_GPL_PHY
device bhnd
device bhndb
device bhndb_pci
device bcma
device siba
device gpio
# device firmware # apparently already included somewhere else?!
device ipw # Intel 2100 wireless NICs.
.PATH: ${SRCTOP}/sys/gnu/dev/bwn/phy_n
SRCS.BWN_GPL_PHY+= if_bwn_radio_2055.c
SRCS.BWN_GPL_PHY+= if_bwn_radio_2056.c
SRCS.BWN_GPL_PHY+= if_bwn_radio_2057.c
SRCS.BWN_GPL_PHY+= if_bwn_phy_n_sprom.c
SRCS.BWN_GPL_PHY+= if_bwn_phy_n_tables.c
SRCS.BWN_GPL_PHY+= if_bwn_phy_n_ppr.c
SRCS.BWN_GPL_PHY+= if_bwn_phy_n_core.c
as get the following from the make/compile of the CUSTOM kernel:
....more earlier messages...
-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -Werror vers.c
ctfconvert -L VERSION -g vers.o
linking kernel.full
ld: error: undefined symbol: bwn_nphy_op_allocate
>>> referenced by if_bwn_phy_n.c:99 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:99)
>>> if_bwn_phy_n.o

bwn_phy_n_attach)
ld: error: undefined symbol: bwn_nphy_op_free
>>> referenced by if_bwn_phy_n.c:113 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:113)
>>> if_bwn_phy_n.o

bwn_phy_n_detach)
ld: error: undefined symbol: bwn_nphy_op_prepare_structs
>>> referenced by if_bwn_phy_n.c:122 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:122)
>>> if_bwn_phy_n.o

bwn_phy_n_prepare_hw)
ld: error: undefined symbol: bwn_nphy_op_init
>>> referenced by if_bwn_phy_n.c:139 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:139)
>>> if_bwn_phy_n.o

bwn_phy_n_init)
ld: error: undefined symbol: bwn_nphy_op_software_rfkill
>>> referenced by if_bwn_phy_n.c:210 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:210)
>>> if_bwn_phy_n.o

bwn_phy_n_rf_onoff)
ld: error: undefined symbol: bwn_nphy_op_switch_analog
>>> referenced by if_bwn_phy_n.c:218 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:218)
>>> if_bwn_phy_n.o

bwn_phy_n_switch_analog)
ld: error: undefined symbol: bwn_nphy_op_switch_channel
>>> referenced by if_bwn_phy_n.c:226 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:226)
>>> if_bwn_phy_n.o

bwn_phy_n_switch_channel)
ld: error: undefined symbol: bwn_nphy_op_recalc_txpower
>>> referenced by if_bwn_phy_n.c:258 (/usr/src/sys/dev/bwn/if_bwn_phy_n.c:258)
>>> if_bwn_phy_n.o

bwn_phy_n_recalc_txpwr)
*** Error code 1
Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/CUSTOM
*** Error code 1
*** Error code 1
This posting editor seems to have replaced a colon and open bracket

in the above messages with a "sad face"?!
OK, so I'm definitely missing something.
Thanks in advance!!!
All the Very Best! m