Issue
For some reason when running
sudo modprobe mac80211_hwsim radios=n
when n is greater than 100 the comand returns:
modprobe: ERROR: could not insert 'mac80211_hwsim': Invalid argument
is there any limit on simulated radios? because linux kernel page says mac80211_hwsim is a Linux kernel module that can be used to simulate arbitrary number of IEEE 802.11 radios for mac8021
Solution
Looking at the source of mac80211_hwsim.c from the current kernel (6.0.6 as of writing) it is indeed limited to 100:
if (radios < 0 || radios > 100)
return -EINVAL;
Answered By - precla Answer Checked By - David Marino (WPSolving Volunteer)