2

问题-> 我想知道如何为 GB 以外的国家/地区的模式 a/b/g/n 测试频道(WIFI)?


H/W -> WIFI sparklan WPEA110N
芯片组:Atheros AR9280
接口:Mini PCI Express

软件 ->
Linux fedora 11
Wifi 接入点实用程序 -> hostapd


到目前为止我所做的 ->
1) 我已经更改了 hostapd_minimal.conf 的配置文件,并将国家代码从 GB 更改为任何其他国家,例如 CN(CHINA) 或 US(USA)。
2)我也尝试过更改 CRDA
ex-> iw reg set CN

这些更改的结果->
我注意到它成功阻止了除 GB 以外的国家/地区不允许的频道,例如在中国,模式 a频道36是不允许的,因此 hostapd 的结果变为 false 但它甚至不允许频道在中国是合法的。

摘要 ->简而言之,如果我将国家/地区从 GB 更改为任何其他国家/地区,则 hostapd 实用程序仅允许公共频道。例如 1) 如果我将国家更改为美国,则模式 a将允许 36、38、40 等, 因为这些是两国的合法频道,但不允许频道 149 -165

有人可以说明一下吗。

谢谢和问候,
山姆

4

1 回答 1

1
 Well  after couple of days of struggle . I have found  the solution.  Well  Remember this  is only for testing wireless inside  my house. Using of channels which are not authorised in a particular country  are illegal and can be prosecuted.

 To summarize what I did..( may be it wil be helpful for someone)
 Its 2 MAIN stEP PROCEDURE . 
     - First to MAKE CHANGES IN wireless-regdb and
     - Second with crda

 1)WIRELESS-REGDB

   1.a)Download wireless-regdb-2008.11.17.tar.bz2 package
   1.b) Untar it
   1.c) cd wireless-regdb-2008.11.17
   1.d) vi db.text and made changes what you have mentioned
   1.e) make
   This will create a public and priv key in my case its something like key.priv.pem

   1.f) copy the regulatory.bin to /usr/lib/crda/
        (create crda if does not exist)

   if you guys want to make changes in regulatory.bin after the make then
   i) edit db.txt and make reguire changes
   ii) compile it . ex ./db2bin.py regulatory.bin db.txt key.priv.pem
   iii) copy into /usr/lib/crda

          ****************** Now download and commpile crda*******

  2.a) Download Crda . I n my case its crda-1.1.2.tar.bz2
  2 .b) un tar it and cd into directory
  2.c) copy the public key from wireless-regdb into pubkeys directory
  example — cp bla bla/wireless_regdb-2008.11.17 blabla/crda-1.1.2/pubkeys

 2.d)make the file .. type “make”
 note — in my case I got hell lot of errors and dependency problem but google has                      helped me to solve it
 2.e make install
 2.f reboot the system.

 Important — modify frequency in db.txt of the country which your driver is requesting    from EEPROM of H/w.
 for example -> if your driver get counrty code as GB and you made changes for US , it   will not work.

 Best bet is to check what your country code is by typing “iw reg get ” command
于 2012-05-31T10:03:38.270 回答