V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
station
V2EX  ›  Linux

CONFIG_CFG80211_INTERNAL_REGDB 的实现? linux 无线很熟悉的来哈~

  •  
  •   station · 2015-08-18 11:05:56 +08:00 · 3614 次点击
    这是一个创建于 3189 天前的主题,其中的信息可能已经有所发展或是发生改变。
    wireless.wiki.kernel.org 中翻到有这么一页提到了这个选项,瞬间来了兴致想尝试下

    https://wireless.wiki.kernel.org/en/developers/regulatory/crda

    c++新手好多看不懂。。。。。。(被人忽悠了没学 C 直接 C++有些吃力....)

    下面是 linux 源码中的 /net/wireless/reg.c (

    个人感觉是 reg.c 中 449 行

    #ifdef CONFIG_CFG80211_INTERNAL_REGDB
    struct reg_regdb_search_request {
    char alpha2[2]; <<改这里的国家码
    struct list_head list;
    };

    )

    https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/net/wireless/reg.c?id=refs/tags/v3.18.20

    google 几乎全是一样的结果
    1 条回复    2015-08-19 09:14:24 +08:00
    phoenixshen
        1
    phoenixshen  
       2015-08-19 09:14:24 +08:00
    this is just c code.
    u should check
    module_param (ieee80211_regdom, charp, 0444 );
    MODULE_PARM_DESC (ieee80211_regdom, "IEEE 802.11 regulatory domain code");
    this is the where be setted.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1945 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:02 · PVG 08:02 · LAX 17:02 · JFK 20:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.