{"action":"created","issue":{"url":"https://api.github.com/repos/seemoo-lab/nexmon/issues/91","repository_url":"https://api.github.com/repos/seemoo-lab/nexmon","labels_url":"https://api.github.com/repos/seemoo-lab/nexmon/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/seemoo-lab/nexmon/issues/91/comments","events_url":"https://api.github.com/repos/seemoo-lab/nexmon/issues/91/events","html_url":"https://github.com/seemoo-lab/nexmon/issues/91","id":234998229,"number":91,"title":"error compiling on 4.11.2 kernel","user":{"login":"anemostec","id":16150576,"avatar_url":"https://avatars1.githubusercontent.com/u/16150576?v=3","gravatar_id":"","url":"https://api.github.com/users/anemostec","html_url":"https://github.com/anemostec","followers_url":"https://api.github.com/users/anemostec/followers","following_url":"https://api.github.com/users/anemostec/following{/other_user}","gists_url":"https://api.github.com/users/anemostec/gists{/gist_id}","starred_url":"https://api.github.com/users/anemostec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anemostec/subscriptions","organizations_url":"https://api.github.com/users/anemostec/orgs","repos_url":"https://api.github.com/users/anemostec/repos","events_url":"https://api.github.com/users/anemostec/events{/privacy}","received_events_url":"https://api.github.com/users/anemostec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-10T11:53:59Z","updated_at":"2017-06-13T12:49:58Z","closed_at":null,"body":"Hello, on a nano pi neo air with a 4.11.2 kernel, the compilation fails with the following error\r\n\r\nroot@NanoPi-NEO-Air:~/nexmon/patches/bcm43438/7_45_41_26/nexmon# make\r\n\r\n\r\n          ###########   ###########   ##########    ##########           \r\n         ############  ############  ############  ############          \r\n         ##            ##            ##   ##   ##  ##        ##          \r\n         ##            ##            ##   ##   ##  ##        ##          \r\n         ###########   ####  ######  ##   ##   ##  ##    ######          \r\n          ###########  ####  #       ##   ##   ##  ##    #    #          \r\n                   ##  ##    ######  ##   ##   ##  ##    #    #          \r\n                   ##  ##    #       ##   ##   ##  ##    #    #          \r\n         ############  ##### ######  ##   ##   ##  ##### ######          \r\n         ###########    ###########  ##   ##   ##   ##########           \r\n\r\n            S E C U R E   M O B I L E   N E T W O R K I N G               \r\n\r\n\r\n                               presents:                                  \r\n\r\n              # ###   ###  #   # # ###  ###   ###  # ###                  \r\n              ##   # #   #  # #  ##   ##   # #   # ##   #                 \r\n              #    # #####   #   #    #    # #   # #    #                 \r\n              #    # #      # #  #    #    # #   # #    #                 \r\n              #    #  #### #   # #    #    #  ###  #    #                 \r\n\r\n                The C-based Firmware Patching Framework                   \r\n\r\n\r\n                           !!! WARNING !!!                                \r\n    Our software may damage your hardware and may void your hardware’s    \r\n     warranty! You use our tools at your own risk and responsibility      \r\n\r\n\r\n  CREATING DIRECTORIES obj, gen, log\r\n  COMPILING src/version.c => obj/version.o (details: log/compiler.log)\r\n  GENERATING LINKER FILE gen/nexmon.pre => gen/nexmon.ld\r\n  GENERATING LINKER FILE gen/nexmon.pre => gen/flashpatches.ld\r\n  LINKING OBJECTS => gen/patch.elf (details: log/linker.log, log/linker.err)\r\n  GENERATING MAKE FILE gen/nexmon.pre => gen/nexmon.mk\r\n  GENERATING MAKE FILE gen/nexmon.pre => gen/flashpatches.mk\r\n  APPLYING FLASHPATCHES gen/flashpatches.mk => brcmfmac43430-sdio.bin (details: log/flashpatches.log)\r\n  APPLYING PATCHES gen/nexmon.mk => brcmfmac43430-sdio.bin (details: log/patches.log)\r\n  BUILDING DRIVER  brcmfmac/brcmfmac.ko (details: log/driver.log)\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:136:12: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)\r\n  .band   = IEEE80211_BAND_2GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:154:2: note: in expansion of macro ‘CHAN2G’\r\n  CHAN2G(1, 2412), CHAN2G(2, 2417), CHAN2G(3, 2422), CHAN2G(4, 2427),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[0].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:14: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n              ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[1].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:14: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n              ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:26: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[2].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:26: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:38: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[3].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:38: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:50: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n                                                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[4].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:161:50: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(34), CHAN5G(36), CHAN5G(38), CHAN5G(40), CHAN5G(42),\r\n                                                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[5].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:14: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n              ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[6].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:14: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n              ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:26: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[7].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:26: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:38: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[8].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:38: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:50: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n                                                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[9].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:162:50: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(44), CHAN5G(46), CHAN5G(48), CHAN5G(52), CHAN5G(56),\r\n                                                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[10].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:14: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n              ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[11].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:14: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n              ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:26: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[12].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:26: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:39: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n                                       ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[13].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:39: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n                                       ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:52: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n                                                    ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[14].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:163:52: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(60), CHAN5G(64), CHAN5G(100), CHAN5G(104), CHAN5G(108),\r\n                                                    ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[15].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:15: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n               ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[16].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:15: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n               ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:28: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n                            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[17].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:28: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n                            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:41: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n                                         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[18].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:41: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n                                         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:54: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n                                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[19].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:164:54: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(112), CHAN5G(116), CHAN5G(120), CHAN5G(124), CHAN5G(128),\r\n                                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[20].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:15: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n               ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[21].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:15: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n               ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:28: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n                            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[22].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:28: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n                            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:41: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n                                         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[23].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:41: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n                                         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:54: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n                                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[24].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:165:54: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(132), CHAN5G(136), CHAN5G(140), CHAN5G(144), CHAN5G(149),\r\n                                                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[25].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:2: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:15: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n               ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[26].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:15: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n               ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:28: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n                            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[27].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:28: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n                            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: error: initializer element is not constant\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:41: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n                                         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:145:12: note: (near initialization for ‘__wl_5ghz_channels[28].band’)\r\n  .band   = IEEE80211_BAND_5GHZ,  \\\r\n            ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:166:41: note: in expansion of macro ‘CHAN5G’\r\n  CHAN5G(153), CHAN5G(157), CHAN5G(161), CHAN5G(165)\r\n                                         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:173:10: error: initializer element is not constant\r\n  .band = IEEE80211_BAND_2GHZ,\r\n          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:173:10: note: (near initialization for ‘__wl_band_2ghz.band’)\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:179:10: error: initializer element is not constant\r\n  .band = IEEE80211_BAND_5GHZ,\r\n          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:179:10: note: (near initialization for ‘__wl_band_5ghz.band’)\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘chandef_to_chanspec’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:291:7: error: ‘IEEE80211_BAND_60GHZ’ undeclared (first use in this function)\r\n  case IEEE80211_BAND_60GHZ:\r\n       ^\r\n/root/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\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_vif_change_validate’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:409:49: warning: passing argument 2 of ‘cfg80211_check_combinations’ makes pointer from integer without a cast [-Wint-conversion]\r\n   ret = cfg80211_check_combinations(cfg->wiphy, 1, 0, iftype_num);\r\n                                                 ^\r\nIn file included from /root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:23:0:\r\n./include/net/cfg80211.h:5823:5: note: expected ‘struct iface_combination_params *’ but argument is of type ‘int’\r\n int cfg80211_check_combinations(struct wiphy *wiphy,\r\n     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:409:9: error: too many arguments to function ‘cfg80211_check_combinations’\r\n   ret = cfg80211_check_combinations(cfg->wiphy, 1, 0, iftype_num);\r\n         ^\r\nIn file included from /root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:23:0:\r\n./include/net/cfg80211.h:5823:5: note: declared here\r\n int cfg80211_check_combinations(struct wiphy *wiphy,\r\n     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_vif_add_validate’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:425:49: warning: passing argument 2 of ‘cfg80211_check_combinations’ makes pointer from integer without a cast [-Wint-conversion]\r\n  return cfg80211_check_combinations(cfg->wiphy, 1, 0, iftype_num);\r\n                                                 ^\r\nIn file included from /root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:23:0:\r\n./include/net/cfg80211.h:5823:5: note: expected ‘struct iface_combination_params *’ but argument is of type ‘int’\r\n int cfg80211_check_combinations(struct wiphy *wiphy,\r\n     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:425:9: error: too many arguments to function ‘cfg80211_check_combinations’\r\n  return cfg80211_check_combinations(cfg->wiphy, 1, 0, iftype_num);\r\n         ^\r\nIn file included from /root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:23:0:\r\n./include/net/cfg80211.h:5823:5: note: declared here\r\n int cfg80211_check_combinations(struct wiphy *wiphy,\r\n     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_notify_escan_complete’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:746:36: error: incompatible type for argument 2 of ‘cfg80211_scan_done’\r\n   cfg80211_scan_done(scan_request, aborted);\r\n                                    ^\r\nIn file included from /root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:23:0:\r\n./include/net/cfg80211.h:4490:6: note: expected ‘struct cfg80211_scan_info *’ but argument is of type ‘bool {aka _Bool}’\r\n void cfg80211_scan_done(struct cfg80211_scan_request *request,\r\n      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:746:3: warning: statement with no effect [-Wunused-value]\r\n   cfg80211_scan_done(scan_request, aborted);\r\n   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_inform_single_bss’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2661:22: error: array subscript is not an integer\r\n   band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2661:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2663:22: error: array subscript is not an integer\r\n   band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2663:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_inform_ibss’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2770:22: error: array subscript is not an integer\r\n   band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2770:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2772:22: error: array subscript is not an integer\r\n   band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:2772:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_bss_roaming_done’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4938:22: error: array subscript is not an integer\r\n   band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4938:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4940:22: error: array subscript is not an integer\r\n   band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:4940:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_construct_chaninfo’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5434:21: error: array subscript is not an integer\r\n  band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n                     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5434:7: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n  band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n       ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5438:21: error: array subscript is not an integer\r\n  band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n                     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5438:7: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n  band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n       ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5449:23: error: array subscript is not an integer\r\n    band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n                       ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5449:9: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n    band = wiphy->bands[IEEE80211_BAND_2GHZ];\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5451:23: error: array subscript is not an integer\r\n    band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n                       ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5451:9: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n    band = wiphy->bands[IEEE80211_BAND_5GHZ];\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_enable_bw40_2g’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5566:34: error: array subscript is not an integer\r\n   band = cfg_to_wiphy(cfg)->bands[IEEE80211_BAND_2GHZ];\r\n                                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5566:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   band = cfg_to_wiphy(cfg)->bands[IEEE80211_BAND_2GHZ];\r\n        ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_get_bwcap’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5598:9: error: array subscript is not an integer\r\n   bw_cap[IEEE80211_BAND_2GHZ] = band;\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5598:3: warning: statement with no effect [-Wunused-value]\r\n   bw_cap[IEEE80211_BAND_2GHZ] = band;\r\n   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5602:10: error: array subscript is not an integer\r\n    bw_cap[IEEE80211_BAND_5GHZ] = band;\r\n          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5602:4: warning: statement with no effect [-Wunused-value]\r\n    bw_cap[IEEE80211_BAND_5GHZ] = band;\r\n    ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5617:9: error: array subscript is not an integer\r\n   bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_40MHZ_BIT;\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5617:3: warning: statement with no effect [-Wunused-value]\r\n   bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_40MHZ_BIT;\r\n   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5620:9: error: array subscript is not an integer\r\n   bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_40MHZ_BIT;\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5620:3: warning: statement with no effect [-Wunused-value]\r\n   bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_40MHZ_BIT;\r\n   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5623:9: error: array subscript is not an integer\r\n   bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_20MHZ_BIT;\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5623:3: warning: statement with no effect [-Wunused-value]\r\n   bw_cap[IEEE80211_BAND_2GHZ] |= WLC_BW_20MHZ_BIT;\r\n   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5624:9: error: array subscript is not an integer\r\n   bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_20MHZ_BIT;\r\n         ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5624:3: warning: statement with no effect [-Wunused-value]\r\n   bw_cap[IEEE80211_BAND_5GHZ] |= WLC_BW_20MHZ_BIT;\r\n   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_update_vht_cap’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5664:17: warning: comparison between pointer and integer\r\n  if (band->band == IEEE80211_BAND_2GHZ)\r\n                 ^\r\nIn file included from ./include/linux/kernel.h:13:0,\r\n                 from /root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:19:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_setup_wiphybands’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5701:27: error: array subscript is not an integer\r\n     nmode, vhtmode, bw_cap[IEEE80211_BAND_2GHZ],\r\n                           ^\r\n./include/linux/printk.h:136:18: note: in definition of macro ‘no_printk’\r\n    printk(fmt, ##__VA_ARGS__); \\\r\n                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: note: in expansion of macro ‘brcmf_dbg’\r\n  brcmf_dbg(INFO, \"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\\n\",\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5702:11: error: array subscript is not an integer\r\n     bw_cap[IEEE80211_BAND_5GHZ]);\r\n           ^\r\n./include/linux/printk.h:136:18: note: in definition of macro ‘no_printk’\r\n    printk(fmt, ##__VA_ARGS__); \\\r\n                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: note: in expansion of macro ‘brcmf_dbg’\r\n  brcmf_dbg(INFO, \"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\\n\",\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘struct ieee80211_channel *’ [-Wformat=]\r\n  brcmf_dbg(INFO, \"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\\n\",\r\n                  ^\r\n./include/linux/printk.h:136:11: note: in definition of macro ‘no_printk’\r\n    printk(fmt, ##__VA_ARGS__); \\\r\n           ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: note: in expansion of macro ‘brcmf_dbg’\r\n  brcmf_dbg(INFO, \"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\\n\",\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘struct ieee80211_channel *’ [-Wformat=]\r\n  brcmf_dbg(INFO, \"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\\n\",\r\n                  ^\r\n./include/linux/printk.h:136:11: note: in definition of macro ‘no_printk’\r\n    printk(fmt, ##__VA_ARGS__); \\\r\n           ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:5700:2: note: in expansion of macro ‘brcmf_dbg’\r\n  brcmf_dbg(INFO, \"nmode=%d, vhtmode=%d, bw_cap=(%d, %d)\\n\",\r\n  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_setup_wiphy’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6002:16: error: array subscript is not an integer\r\n    wiphy->bands[IEEE80211_BAND_2GHZ] = band;\r\n                ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6002:4: warning: statement with no effect [-Wunused-value]\r\n    wiphy->bands[IEEE80211_BAND_2GHZ] = band;\r\n    ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6019:16: error: array subscript is not an integer\r\n    wiphy->bands[IEEE80211_BAND_5GHZ] = band;\r\n                ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6019:4: warning: statement with no effect [-Wunused-value]\r\n    wiphy->bands[IEEE80211_BAND_5GHZ] = band;\r\n    ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_free_wiphy’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6232:18: error: array subscript is not an integer\r\n  if (wiphy->bands[IEEE80211_BAND_2GHZ]) {\r\n                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6233:21: error: array subscript is not an integer\r\n   kfree(wiphy->bands[IEEE80211_BAND_2GHZ]->channels);\r\n                     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6233:42: error: ‘struct ieee80211_channel’ has no member named ‘channels’\r\n   kfree(wiphy->bands[IEEE80211_BAND_2GHZ]->channels);\r\n                                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6234:21: error: array subscript is not an integer\r\n   kfree(wiphy->bands[IEEE80211_BAND_2GHZ]);\r\n                     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6236:18: error: array subscript is not an integer\r\n  if (wiphy->bands[IEEE80211_BAND_5GHZ]) {\r\n                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6237:21: error: array subscript is not an integer\r\n   kfree(wiphy->bands[IEEE80211_BAND_5GHZ]->channels);\r\n                     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6237:42: error: ‘struct ieee80211_channel’ has no member named ‘channels’\r\n   kfree(wiphy->bands[IEEE80211_BAND_5GHZ]->channels);\r\n                                          ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6238:21: error: array subscript is not an integer\r\n   kfree(wiphy->bands[IEEE80211_BAND_5GHZ]);\r\n                     ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c: In function ‘brcmf_cfg80211_attach’:\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6315:18: error: array subscript is not an integer\r\n  if (wiphy->bands[IEEE80211_BAND_2GHZ]) {\r\n                  ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:22: error: array subscript is not an integer\r\n   cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap;\r\n                      ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:43: error: ‘struct ieee80211_channel’ has no member named ‘ht_cap’\r\n   cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap;\r\n                                           ^\r\n/root/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\r\n   cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap;\r\n                                                   ^\r\n/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.c:6316:7: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]\r\n   cap = &wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap.cap;\r\n       ^\r\ncc1: some warnings being treated as errors\r\nmake[2]: *** [/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/cfg80211.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nscripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: \"(\" unexpected\r\nmake[2]: *** [/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac/chip.o] Error 2\r\nmake[1]: *** [_module_/root/nexmon/patches/bcm43438/7_45_41_26/nexmon/brcmfmac] Error 2\r\nMakefile:41: recipe for target 'brcmfmac.ko' failed\r\nmake: *** [brcmfmac.ko] Error 2\r\n"},"comment":{"url":"https://api.github.com/repos/seemoo-lab/nexmon/issues/comments/308105076","html_url":"https://github.com/seemoo-lab/nexmon/issues/91#issuecomment-308105076","issue_url":"https://api.github.com/repos/seemoo-lab/nexmon/issues/91","id":308105076,"user":{"login":"DanielAW","id":2500905,"avatar_url":"https://avatars2.githubusercontent.com/u/2500905?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielAW","html_url":"https://github.com/DanielAW","followers_url":"https://api.github.com/users/DanielAW/followers","following_url":"https://api.github.com/users/DanielAW/following{/other_user}","gists_url":"https://api.github.com/users/DanielAW/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielAW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielAW/subscriptions","organizations_url":"https://api.github.com/users/DanielAW/orgs","repos_url":"https://api.github.com/users/DanielAW/repos","events_url":"https://api.github.com/users/DanielAW/events{/privacy}","received_events_url":"https://api.github.com/users/DanielAW/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T12:49:58Z","updated_at":"2017-06-13T12:49:58Z","body":"This is very strange. I think this `scripts/basic/fixdep` is some script which belongs to the kernel itself. You did install the kernel headers, right?"}}
{"actor":{"display_login":"DanielAW"}}