【问题标题】:Max number of simulated wlans with mac80211_hwsim使用 mac80211_hwsim 模拟 wlan 的最大数量
【发布时间】:2022-11-03 03:56:55
【问题描述】:

跑步时出于某种原因

sudo modprobe mac80211_hwsim radios=n

当 n 大于 100 时,命令返回:

modprobe:错误:无法插入“mac80211_hwsim”:参数无效

模拟收音机有限制吗?因为linux内核页面说mac80211_hwsim 是一个 Linux 内核模块,可用于为 mac8021 模拟任意数量的 IEEE 802.11 无线电

【问题讨论】:

    标签: linux linux-kernel simulation wireless


    【解决方案1】:

    从当前内核(撰写时为 6.0.6)查看 mac80211_hwsim.c 的源代码,它确实限制为 100:

    https://elixir.bootlin.com/linux/v6.0.6/source/drivers/net/wireless/mac80211_hwsim.c#L5279

    if (radios < 0 || radios > 100)
        return -EINVAL;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-25
      • 1970-01-01
      • 2018-09-07
      • 2011-01-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多