diff options
Diffstat (limited to 'test/README')
-rw-r--r-- | test/README | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/test/README b/test/README new file mode 100644 index 0000000..a59a2c4 --- /dev/null +++ b/test/README @@ -0,0 +1,78 @@ +1. Files for test: + + a. 88W8864.bin: F/W binary. Please put this file under directory '/lib/firmware'. + b. Mamba_FCC_v1.2_5G4TX.ini: power table for Mamba. + c. mwlwifi.ko: 88W8864 mac80211 driver kernel module. + d. hostapd.conf: configuration file used to configure hostapd. + e. openwrt-mvebu-jffs2-128k.img: OpenWRT download image (built with kernel cfg80211/mac80211, iw and hostapd). + +2. Bring up driver: + + a. iw reg set US + --> set regulatory domain (Note: cfg80211 will disable DFS channels). + b. insmod mwlwifi.ko fw_name=88W8864.bin pwr_tbl=Mamba_FCC_v1.2_5G4TX.ini + --> After module is inserted, physical interfaces phy0 and phy1 and network device wlan0 and wlan1 + will be created. You can issue "iw dev" to check them. + c. hostapd -B ./hostapd.conf + --> There are few sample configuration files under this directory. Please use them to do test. + d. brctl addif br-lan wlan1 + --> Make sure wlan1 is the interface specified in hostapd.conf. + + Note: you can run script file 'setup.sh' instead of issuing these commands one by one. + +3. Change configuration: + + After hostapd and driver is running, the way to change configuration: + 1. Change configuration file hostapd.conf + 2. Run "killall hostapd" then "hostapd -B ./hostapd.conf" to run hostapd with new configuration. + +4. The way to change channel via hostpad.conf for 80 MHz: + + a. You must check regulatory domain first to see if the channel you setting is allowable for 80 MHz. + You can use ˇ§iw reg getˇ¨ and ˇ§iw reg setˇ¨ to get and set regulatory domain. For script file ˇ§setup.shˇ¨, + it sets the regulatory domain to US. + If you use ˇ§iw reg getˇ¨ to check setting regulatory domain: + country US: DFS-UNSET + (2402 - 2472 @ 40), (30, 0) + (5170 - 5250 @ 80), (17, 0) + (5250 - 5330 @ 80), (23, 0) + (5735 - 5835 @ 80), (30, 0) + (57240 - 63720 @ 2160), (40, 0) + It allows you to use three ranges to do 80 MHz operation (36 ~ 48), (52 ~ 64) and (149 ~ 161). + If you use ˇ§iw reg set TWˇ¨ to set regulatory domain to TW: + country TW: DFS-UNSET + (2402 - 2472 @ 40), (30, 0) + (5270 - 5330 @ 40), (17, 0) + (5490 - 5590 @ 80), (30, 0) + (5650 - 5710 @ 40), (30, 0) + (5735 - 5835 @ 80), (30, 0) + It allows you set use two ranges to do 80 MHz operation (100 ~ 116) and (149 ~ 161). + + b. After regulatory is set and make sure the channel range you want to use is allowable by the + setting regulatory, you can modify hostapd.conf to run 80 Mhz as: + + channel=36 -> decide active primary channel. + ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40] -> decide primary 40 MHz. + vht_oper_centr_freq_seg0_idx=42 -> center channel for this 80 MHz. + + Test sample: + + a. 149 to 161: + channel=149 + ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40] + vht_oper_centr_freq_seg0_idx=155 + + channel=153 + ht_capab=[LDPC][HT40-][SHORT-GI-20][SHORT-GI-40] + vht_oper_centr_freq_seg0_idx=155 + + b. 100 to 112: + Use ˇ§iw reg set TWˇ¨ to change regulatory domain to allow to use this range for 80 Mhz. + channel=100 + ht_capab=[LDPC][HT40+][SHORT-GI-20][SHORT-GI-40] + vht_oper_centr_freq_seg0_idx=106 + + channel=104 + ht_capab=[LDPC][HT40-][SHORT-GI-20][SHORT-GI-40] + vht_oper_centr_freq_seg0_idx=106 + |