2012-05-17 68 views
2

問題 - >我想知道如何測試頻道(WIFI)的模式a/b/g/n的國家以外的國家。測試英國頻道以外的wifi接入點的頻道


H/W - > WIFI sparklan WPEA110N
芯片組:Atheros的AR9280
接口:微型PCI Express

軟件 - >
的Linux Fedora的11
WiFi接入點工具 - > hostapd


我到目前爲止所做的 - >
1)我更改了hostapd_minimal.conf的配置文件,並將國家代碼從GB更改爲任何其他國家,例如CN(中國)或美國(美國)。
2)我也試圖改變檔案室
EX-> IW REG設置CN

這些變化

結果 - >
我已經注意到,它成功地阻止未在其他國家允許的信道比國內例如在中國的模式a頻道是不允許的,因此hostapd的結果變成false但它甚至不允許在中國合法允許的頻道。

SUMMARY - >簡而言之,如果我將國家從GB更改爲任何其他國家,hostapd實用程序只允許共用頻道。例如1)如果我改變國美 它將使36,38,40等,爲模式因爲這些都是兩國的法律途徑,但犯規讓通路149 -165

可能有人請扔點亮它。

感謝和問候,
山姆

回答

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