Open knuxyl opened 7 years ago
Did you install the build dependencies? sudo apt install raspberrypi-kernel-headers git libgmp3-dev gawk qpdf
I get this same exact error. I installed all the dependencies. My kernel is: root@pithree:~/nexmon-master/patches/bcm43438/7_45_41_26/nexmon# uname -r 4.9.14-v7+ Think it might have something to do with the newer kernel?
Yep. You appear to be on next
from rpi-update
instead of stable
from Raspbian 8 apt which is at 4.4.50-v7+ (which is working for me here--without rpi-update
).
In 4.9/next
it looks like they removed the ieee80211_band enum. https://github.com/raspberrypi/linux/commit/57fbcce37be7c1d2622b56587c10ade00e96afa3#diff-6788d961d43074bcd7966d231861f6b8
Until then, use 'stable'/4.4 and rebuild. Or send up a patch!
pi@raspberrypi:~/Desktop/nexmon $ source setup_env.sh pi@raspberrypi:~/Desktop/nexmon $ cd patches/bcm43438/7_45_41_26/nexmon/ pi@raspberrypi:~/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon $ make
CREATING DIRECTORIES obj, gen, log COMPILING src/version.c => obj/version.o (details: log/compiler.log) GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err) GENERATING MAKE FILE gen/nexmon.pre => gen/nexmon.mk GENERATING MAKE FILE gen/nexmon.pre => gen/flashpatches.mk APPLYING FLASHPATCHES gen/flashpatches.mk => brcmfmac43430-sdio.bin (details: log/flashpatches.log) APPLYING PATCHES gen/nexmon.mk => brcmfmac43430-sdio.bin (details: log/patches.log) BUILDING DRIVER brcmfmac/brcmfmac.ko (details: log/driver.log) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:136:12: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function) .band = IEEE80211_BAND_2GHZ, \ ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:154:2: note: in expansion of macro ‘CHAN2G’ CHAN2G(1, 2412), CHAN2G(2, 2417), CHAN2G(3, 2422), CHAN2G(4, 2427), ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function) .band = IEEE80211_BAND_5GHZ, \ ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: note: in expansion of macro ‘CHAN5G’ CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42), ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: (near initialization for ‘wl_5ghz_channels[0].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: (near initialization for ‘wl_5ghz_channels[1].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: (near initialization for ‘wl_5ghz_channels[2].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: (near initialization for ‘wl_5ghz_channels[3].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: error: (near initialization for ‘wl_5ghz_channels[4].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: initializer element is not constant CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56), ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: (near initialization for ‘wl_5ghz_channels[5].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: (near initialization for ‘wl_5ghz_channels[6].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: (near initialization for ‘wl_5ghz_channels[7].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: (near initialization for ‘wl_5ghz_channels[8].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: error: (near initialization for ‘wl_5ghz_channels[9].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: initializer element is not constant CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108), ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: (near initialization for ‘wl_5ghz_channels[10].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: (near initialization for ‘wl_5ghz_channels[11].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: (near initialization for ‘wl_5ghz_channels[12].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: (near initialization for ‘wl_5ghz_channels[13].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: error: (near initialization for ‘wl_5ghz_channels[14].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: initializer element is not constant CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128), ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: (near initialization for ‘wl_5ghz_channels[15].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: (near initialization for ‘wl_5ghz_channels[16].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: (near initialization for ‘wl_5ghz_channels[17].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: (near initialization for ‘wl_5ghz_channels[18].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: error: (near initialization for ‘wl_5ghz_channels[19].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: initializer element is not constant CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149), ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: (near initialization for ‘wl_5ghz_channels[20].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: (near initialization for ‘wl_5ghz_channels[21].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: (near initialization for ‘wl_5ghz_channels[22].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: (near initialization for ‘wl_5ghz_channels[23].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: error: (near initialization for ‘wl_5ghz_channels[24].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: initializer element is not constant CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165) ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: (near initialization for ‘wl_5ghz_channels[25].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: (near initialization for ‘wl_5ghz_channels[26].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: (near initialization for ‘wl_5ghz_channels[27].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: initializer element is not constant /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: error: (near initialization for ‘wl_5ghz_channels[28].band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:173:2: error: initializer element is not constant .band = IEEE80211_BAND_2GHZ, ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:173:2: error: (near initialization for ‘wl_band_2ghz.band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:179:2: error: initializer element is not constant .band = IEEE80211_BAND_5GHZ, ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:179:2: error: (near initialization for ‘wl_band_5ghz.band’) /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘chandef_to_chanspec’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:291:7: error: ‘IEEE80211_BAND_60GHZ’ undeclared (first use in this function) case IEEE80211_BAND_60GHZ: ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:291:7: note: each undeclared identifier is reported only once for each function it appears in /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_notify_escan_complete’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:746:3: error: incompatible type for argument 2 of ‘cfg80211_scan_done’ cfg80211_scan_done(scan_request, aborted); ^ In file included from /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:23:0: ./include/net/cfg80211.h:4304:6: note: expected ‘struct cfg80211_scan_info ’ but argument is of type ‘bool’ void cfg80211_scan_done(struct cfg80211_scan_request request, ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:746:3: warning: statement with no effect [-Wunused-value] cfg80211_scan_done(scan_request, aborted); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_inform_single_bss’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2661:22: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2661:8: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2663:22: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2663:8: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_inform_ibss’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2770:22: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2770:8: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2772:22: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2772:8: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_bss_roaming_done’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4938:22: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4938:8: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4940:22: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4940:8: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_construct_chaninfo’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5434:21: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5434:7: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5438:21: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5438:7: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5449:23: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5449:9: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5451:23: error: array subscript is not an integer band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5451:9: warning: assignment from incompatible pointer type band = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_enable_bw40_2g’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5566:34: error: array subscript is not an integer band = cfg_to_wiphy(cfg)->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5566:8: warning: assignment from incompatible pointer type band = cfg_to_wiphy(cfg)->bands[IEEE80211_BAND_2GHZ]; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_get_bwcap’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5598:9: error: array subscript is not an integer bw_cap[IEEE80211_BAND_2GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5598:3: warning: statement with no effect [-Wunused-value] bw_cap[IEEE80211_BAND_2GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5602:10: error: array subscript is not an integer bw_cap[IEEE80211_BAND_5GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5602:4: warning: statement with no effect [-Wunused-value] bw_cap[IEEE80211_BAND_5GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5617:9: error: array subscript is not an integer bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_40MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5617:3: warning: statement with no effect [-Wunused-value] bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_40MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5620:9: error: array subscript is not an integer bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_40MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5620:3: warning: statement with no effect [-Wunused-value] bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_40MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5623:9: error: array subscript is not an integer bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_20MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5623:3: warning: statement with no effect [-Wunused-value] bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_20MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5624:9: error: array subscript is not an integer bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_20MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5624:3: warning: statement with no effect [-Wunused-value] bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_20MHZ_BIT; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_update_vht_cap’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5664:17: warning: comparison between pointer and integer if (band->band == IEEE80211_BAND_2GHZ) ^ In file included from ./include/linux/kernel.h:13:0, from /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:19: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_setup_wiphybands’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5701:27: error: array subscript is not an integer nmode, vhtmode, bw_cap[IEEE80211_BAND_2GHZ], ^ ./include/linux/printk.h:121:18: note: in definition of macro ‘no_printk’ printk(fmt, ##__VA_ARGS); \ ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: note: in expansion of macro ‘brcmf_dbg’ brcmf_dbg(INFO, "nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\n", ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5702:11: error: array subscript is not an integer bw_cap[IEEE80211_BAND_5GHZ]); ^ ./include/linux/printk.h:121:18: note: in definition of macro ‘no_printk’ printk(fmt, ##__VA_ARGS__); \ ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: note: in expansion of macro ‘brcmf_dbg’ brcmf_dbg(INFO, "nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\n", ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘struct ieee80211_channel ’ [-Wformat=] /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘struct ieee80211_channel ’ [-Wformat=] /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_setup_wiphy’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6002:16: error: array subscript is not an integer wiphy->bands[IEEE80211_BAND_2GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6002:4: warning: statement with no effect [-Wunused-value] wiphy->bands[IEEE80211_BAND_2GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6019:16: error: array subscript is not an integer wiphy->bands[IEEE80211_BAND_5GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6019:4: warning: statement with no effect [-Wunused-value] wiphy->bands[IEEE80211_BAND_5GHZ] = band; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_free_wiphy’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6232:18: error: array subscript is not an integer if (wiphy->bands[IEEE80211_BAND_2GHZ]) { ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6233:21: error: array subscript is not an integer kfree(wiphy->bands[IEEE80211_BAND_2GHZ]->channels); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6233:42: error: ‘struct ieee80211_channel’ has no member named ‘channels’ kfree(wiphy->bands[IEEE80211_BAND_2GHZ]->channels); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6234:21: error: array subscript is not an integer kfree(wiphy->bands[IEEE80211_BAND_2GHZ]); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6236:18: error: array subscript is not an integer if (wiphy->bands[IEEE80211_BAND_5GHZ]) { ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6237:21: error: array subscript is not an integer kfree(wiphy->bands[IEEE80211_BAND_5GHZ]->channels); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6237:42: error: ‘struct ieee80211_channel’ has no member named ‘channels’ kfree(wiphy->bands[IEEE80211_BAND_5GHZ]->channels); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6238:21: error: array subscript is not an integer kfree(wiphy->bands[IEEE80211_BAND_5GHZ]); ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_cfg80211_attach’: /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6315:18: error: array subscript is not an integer if (wiphy->bands[IEEE80211_BAND_2GHZ]) { ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:22: error: array subscript is not an integer cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:43: error: ‘struct ieee80211_channel’ has no member named ‘ht_cap’ cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:51: error: request for member ‘cap’ in something not a structure or union cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap; ^ /home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:7: warning: assignment from incompatible pointer type cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap; ^ make[2]: [/home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [module/home/pi/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac] Error 2 Makefile:41: recipe for target 'brcmfmac.ko' failed make: [brcmfmac.ko] Error 2 pi@raspberrypi:~/Desktop/nexmon/patches/bcm43438/7_45_41_26/nexmon $