nuand / bladerf-mac80211_hwsim Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Building on an up-to-date Ubuntu 20.04.3 LTS results in a compile error:
$ make
make -C /lib/modules/5.13.0-27-generic/build M=/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim modules
make[1]: Entering directory '/usr/src/linux-headers-5.13.0-27-generic'
CC [M] /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.o
MODPOST /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/Module.symvers
CC [M] /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.mod.o
LD [M] /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.ko
BTF [M] /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.ko
Skipping BTF generation for /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-27-generic'
warnes@ubuntu-20-04-sdr:/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim$ git branch
* foxtrot/main
main
warnes@ubuntu-20-04-sdr:/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim$ git checkout tmain
error: pathspec 'tmain' did not match any file(s) known to git
warnes@ubuntu-20-04-sdr:/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
warnes@ubuntu-20-04-sdr:/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim$ make clean
make -C /lib/modules/5.13.0-27-generic/build M=/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim clean
make[1]: Entering directory '/usr/src/linux-headers-5.13.0-27-generic'
CLEAN /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/Module.symvers
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-27-generic'
warnes@ubuntu-20-04-sdr:/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim$ make
make -C /lib/modules/5.13.0-27-generic/build M=/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim modules
make[1]: Entering directory '/usr/src/linux-headers-5.13.0-27-generic'
CC [M] /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.o
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2529:6: error: ‘IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_VHT_2’ undeclared here (not in a function); did you mean ‘IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_2’?
2529 | IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_VHT_2,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_2
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2530:24: error: ‘IEEE80211_HE_MAC_CAP4_AMDSU_IN_AMPDU’ undeclared here (not in a function); did you mean ‘IEEE80211_HE_MAC_CAP4_AMSDU_IN_AMPDU’?
2530 | .mac_cap_info[4] = IEEE80211_HE_MAC_CAP4_AMDSU_IN_AMPDU,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| IEEE80211_HE_MAC_CAP4_AMSDU_IN_AMPDU
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2618:40: error: invalid operands to binary | (have ‘int’ and ‘const struct ieee80211_sband_iftype_data *’)
2618 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^
| |
| const struct ieee80211_sband_iftype_data *
In file included from ./include/net/mac80211.h:20,
from /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:23:
./include/linux/ieee80211.h:2002:45: warning: initialization of ‘unsigned char’ from ‘const struct ieee80211_sband_iftype_data *’ makes integer from pointer without a cast [-Wint-conversion]
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2618:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2618 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/ieee80211.h:2002:45: note: (near initialization for ‘he_capa_5ghz[0].he_cap.he_cap_elem.mac_cap_info[3]’)
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2618:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2618 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/ieee80211.h:2002:45: error: initializer element is not constant
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2618:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2618 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/ieee80211.h:2002:45: note: (near initialization for ‘he_capa_5ghz[0].he_cap.he_cap_elem.mac_cap_info[3]’)
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2618:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2618 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2620:24: warning: initialization of ‘unsigned char’ from ‘const struct ieee80211_sband_iftype_data *’ makes integer from pointer without a cast [-Wint-conversion]
2620 | .mac_cap_info[4] = IEEE80211_HE_MAC_CAP4_AMDSU_IN_AMPDU,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2620:24: note: (near initialization for ‘he_capa_5ghz[0].he_cap.he_cap_elem.mac_cap_info[4]’)
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2620:24: error: initializer element is not constant
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2620:24: note: (near initialization for ‘he_capa_5ghz[0].he_cap.he_cap_elem.mac_cap_info[4]’)
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2666:40: error: invalid operands to binary | (have ‘int’ and ‘const struct ieee80211_sband_iftype_data *’)
2666 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^
| |
| const struct ieee80211_sband_iftype_data *
In file included from ./include/net/mac80211.h:20,
from /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:23:
./include/linux/ieee80211.h:2002:45: warning: initialization of ‘unsigned char’ from ‘const struct ieee80211_sband_iftype_data *’ makes integer from pointer without a cast [-Wint-conversion]
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2666:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2666 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/ieee80211.h:2002:45: note: (near initialization for ‘he_capa_5ghz[1].he_cap.he_cap_elem.mac_cap_info[3]’)
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2666:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2666 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/ieee80211.h:2002:45: error: initializer element is not constant
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2666:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2666 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/ieee80211.h:2002:45: note: (near initialization for ‘he_capa_5ghz[1].he_cap.he_cap_elem.mac_cap_info[3]’)
2002 | #define IEEE80211_HE_MAC_CAP3_OMI_CONTROL 0x02
| ^~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2666:6: note: in expansion of macro ‘IEEE80211_HE_MAC_CAP3_OMI_CONTROL’
2666 | IEEE80211_HE_MAC_CAP3_OMI_CONTROL |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2668:24: warning: initialization of ‘unsigned char’ from ‘const struct ieee80211_sband_iftype_data *’ makes integer from pointer without a cast [-Wint-conversion]
2668 | .mac_cap_info[4] = IEEE80211_HE_MAC_CAP4_AMDSU_IN_AMPDU,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2668:24: note: (near initialization for ‘he_capa_5ghz[1].he_cap.he_cap_elem.mac_cap_info[4]’)
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2668:24: error: initializer element is not constant
/media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2668:24: note: (near initialization for ‘he_capa_5ghz[1].he_cap.he_cap_elem.mac_cap_info[4]’)
make[2]: *** [scripts/Makefile.build:281: /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim/mac80211_hwsim.o] Error 1
make[1]: *** [Makefile:1879: /media/psf/Home/GoogleDrive/inoui/src/bladeRF-mac80211_hwsim] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-27-generic'
make: *** [Makefile:4: all] Error 2
Attempting to build on Ubuntu 22.04 with kernel version 6.2.0-33, I get this output from make -j4:
make -C /lib/modules/6.2.0-33-generic/build M=/home/test/wiphy-build/bladeRF-mac80211_hwsim modules
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.2.0-33-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu122.04) 11.4.022.04) 11.4.0
You are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1
CC [M] /home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.o
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c: In function ‘mac80211_hwsim_beacon_tx’:
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:1919:15: error: too few arguments to function ‘ieee80211_beacon_get’
1919 | skb = ieee80211_beacon_get(hw, vif);
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:22:
./include/net/mac80211.h:5267:31: note: declared here
5267 | static inline struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw hw,
| ^~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/kernel.h:29,
from ./arch/x86/include/asm/percpu.h:27,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:56,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:7,
from ./include/linux/slab.h:15,
from /home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:18:
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c: In function ‘mac80211_hwsim_bss_info_changed’:
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2132:31: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’
2132 | info->assoc, info->aid);
| ^~
./include/linux/printk.h:429:33: note: in definition of macro ‘printk_index_wrap’
429 | _p_func(_fmt, ##VA_ARGS);
| ^~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:69:27: note: in expansion of macro ‘printk’
69 | #define wiphy_dbg(x, ...) printk(VA_ARGS)
| ^~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2131:17: note: in expansion of macro ‘wiphy_dbg’
2131 | wiphy_dbg(hw->wiphy, " ASSOC: assoc=%d aid=%d\n",
| ^~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2132:44: error: ‘struct ieee80211_bss_conf’ has no member named ‘aid’
2132 | info->assoc, info->aid);
| ^~
./include/linux/printk.h:429:33: note: in definition of macro ‘printk_index_wrap’
429 | _p_func(_fmt, ##VA_ARGS);
| ^~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:69:27: note: in expansion of macro ‘printk’
69 | #define wiphy_dbg(x, ...) printk(VA_ARGS)
| ^~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2131:17: note: in expansion of macro ‘wiphy_dbg’
2131 | wiphy_dbg(hw->wiphy, " ASSOC: assoc=%d aid=%d\n",
| ^~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2133:33: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’
2133 | vp->assoc = info->assoc;
| ^~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2134:31: error: ‘struct ieee80211_bss_conf’ has no member named ‘aid’
2134 | vp->aid = info->aid;
| ^~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c: At top level:
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2815:29: error: initialization of ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , u64)’ {aka ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , long long unsigned int)’} from incompatible pointer type ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , u32)’ {aka ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , unsigned int)’} [-Werror=incompatible-pointer-types]
2815 | .bss_info_changed = mac80211_hwsim_bss_info_changed,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2834:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2834 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2815:29: note: (near initialization for ‘mac80211_hwsim_ops.bss_info_changed’)
2815 | .bss_info_changed = mac80211_hwsim_bss_info_changed,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2834:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2834 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2822:20: error: initialization of ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, unsigned int, u16, const struct ieee80211_tx_queue_params )’ {aka ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, unsigned int, short unsigned int, const struct ieee80211_tx_queue_params )’} from incompatible pointer type ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, u16, const struct ieee80211_tx_queue_params )’ {aka ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, short unsigned int, const struct ieee80211_tx_queue_params )’} [-Werror=incompatible-pointer-types]
2822 | .conf_tx = mac80211_hwsim_conf_tx,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2834:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2834 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2822:20: note: (near initialization for ‘mac80211_hwsim_ops.conf_tx’)
2822 | .conf_tx = mac80211_hwsim_conf_tx,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2834:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2834 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2815:29: error: initialization of ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , u64)’ {aka ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , long long unsigned int)’} from incompatible pointer type ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , u32)’ {aka ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf , unsigned int)’} [-Werror=incompatible-pointer-types]
2815 | .bss_info_changed = mac80211_hwsim_bss_info_changed,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2840:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2840 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2815:29: note: (near initialization for ‘mac80211_hwsim_mchan_ops.bss_info_changed’)
2815 | .bss_info_changed = mac80211_hwsim_bss_info_changed,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2840:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2840 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2822:20: error: initialization of ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, unsigned int, u16, const struct ieee80211_tx_queue_params )’ {aka ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, unsigned int, short unsigned int, const struct ieee80211_tx_queue_params )’} from incompatible pointer type ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, u16, const struct ieee80211_tx_queue_params )’ {aka ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, short unsigned int, const struct ieee80211_tx_queue_params )’} [-Werror=incompatible-pointer-types]
2822 | .conf_tx = mac80211_hwsim_conf_tx,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2840:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2840 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2822:20: note: (near initialization for ‘mac80211_hwsim_mchan_ops.conf_tx’)
2822 | .conf_tx = mac80211_hwsim_conf_tx,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2840:9: note: in expansion of macro ‘HWSIM_COMMON_OPS’
2840 | HWSIM_COMMON_OPS
| ^~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2850:31: error: initialization of ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf *, struct ieee80211_chanctx_conf )’ from incompatible pointer type ‘int ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_chanctx_conf )’ [-Werror=incompatible-pointer-types]
2850 | .assign_vif_chanctx = mac80211_hwsim_assign_vif_chanctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2850:31: note: (near initialization for ‘mac80211_hwsim_mchan_ops.assign_vif_chanctx’)
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2851:33: error: initialization of ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_bss_conf *, struct ieee80211_chanctx_conf )’ from incompatible pointer type ‘void ()(struct ieee80211_hw *, struct ieee80211_vif *, struct ieee80211_chanctx_conf *)’ [-Werror=incompatible-pointer-types]
2851 | .unassign_vif_chanctx = mac80211_hwsim_unassign_vif_chanctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:2851:33: note: (near initialization for ‘mac80211_hwsim_mchan_ops.unassign_vif_chanctx’)
/home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.c:3022:41: error: ‘IEEE80211_EHT_MAC_CAP0_NSEP_PRIO_ACCESS’ undeclared here (not in a function); did you mean ‘IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS’?
3022 | IEEE80211_EHT_MAC_CAP0_NSEP_PRIO_ACCESS |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| IEEE80211_EHT_MAC_CAP0_EPCS_PRIO_ACCESS
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260: /home/test/wiphy-build/bladeRF-mac80211_hwsim/mac80211_hwsim.o] Error 1
make[1]: *** [Makefile:2026: /home/test/wiphy-build/bladeRF-mac80211_hwsim] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-33-generic'
make: *** [Makefile:4: all] Error 2
On 22.04 w/ Kernel 5.15.0.52 the following steps had to be followed before I could get this built.
git clone https://github.com/warnes-wireless/bladeRF-mac80211_hwsim/tree/use_kmod_5.13_plus
Open and edit bladeRF-mac80211_hwsim/bladeRF_mac80211_hwsim.c by commenting out line 3539-3542.
To avoid the BTF file not generated during the make process, I also had to do the following discussed here (https://askubuntu.com/questions/1348250/skipping-btf-generation-xxx-due-to-unavailability-of-vmlinux-on-ubuntu-21-04)
sudo cp /sys/kernel/btf/vmlinux /usr/lib/modules/5.15.0-52-generic/build
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.