Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
station
V2EX  ›  Linux

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

  •  
  •   station · Aug 18, 2015 · 4158 views
    This topic created in 3936 days ago, the information mentioned may be changed or developed.
    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 replies    2015-08-19 09:14:24 +08:00
    phoenixshen
        1
    phoenixshen  
       Aug 19, 2015
    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.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1255 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:40 · PVG 07:40 · LAX 16:40 · JFK 19:40
    ♥ Do have faith in what you're doing.