The User Guide of XG-762N USB Linux Driver 1
1. Introduction Because more and more people install the Linux operating system in the desktop and notebook, we provide the Linux solution of our XG-762N 802.11a+b+g Wireless LAN Card. XG-762N provides 802.11 a+b+g wireless solution for USB interface. In our XG-762N solution, we can run in the Infrastructure (Managed), Ad-hoc or AP (Master) modes. One can easily change these modes. This document is intended to describe how to setup and how to use XG-762N under the Linux operating system. 1.
2. Building the device driver In this section, we will describe how to build our XG-762N Linux driver under the Linux operating system. 2.1 Package Extraction tar zxvf XG-762NLnxDrv_xxxx.tar.gz # where xxxx is the version number, such as 2_0_0_0 The first thing one should do is to uncompress this package by tar. After untaring this package, you can see the source files. One should change directory into this directory for proceeding the next step. 2.
make clean make XG-762NREV_B=0 make XG-762NREV_B=0 install to install the driver. 2.4 Build the debugging tool There are two debugging tools in this package, ¡° apdbg¡± and ¡° menudbg¡± . Run ¡° make debug¡± to compile them both. If you don¡¯ t have the ncurse library, you may get some error messages while compiling menudbg. You can ignore it and get apdbg only.
3. Getting Start 3.1 Load the driver Generally, the driver is automatically loaded when the XG-762N dongle inserts. If not, one can use the modprobe ¨C v XG-762N to load our driver. In order to check whether our driver is loaded successfully, one can use the ¡° lsmod¡±f or t hi s check. If our dri ver i s loaded successfully, the following messages should be seen ... XG-762N 183576 0 (unused) ... Please note that the 183576 may not be the same as that in your system. 3.
Example: iwconfig ethX channel The channel can vary from 1 to 14. One should note that, the set channel command will NOT work under the Managed (infrastructure mode). Because in the in this mode, the channel should change to channel of the AP we want to associate. rts[_threshold]: Set the RTS Threshold. Example: iwconfig ethX rts 250 frag[_threshold]: Set the Fragmentation Threshold.
Except for commands support for wireless extension, we also define some commands for us to set parameters to our driver. One can use the ¡°i wpri v¡± for this purpose. 3.4.1 Set authentication type One can set the authentication to our driver by the following command: iwpriv ethX set_auth 0: Open System 1: Shared Key Be aware that shared key authentication requires a WEP key. 3.4.
The Cell Number is got from the site survey operation by the doing ¡°i wli st ¡± command. We recommend that user uses the following scenario under the Managed (Infrastructure) or Adhoc mode. One can first do the site survey command by the following command: iwlist ethX scanning Then, associate with the AP with the Cell number got from the iwlist command. iwpriv ethX connect 3.4.7 Dynamical Region Setting(For 802.11b/g only) From ver 1.5, you can dynamically change the region settings. |
Or inactivate it. apdbg ethX s_mic_cnt 0 0 Or get its current state apdbg ethX g_mic_cnt 0 0 3.5 Set up IP address If you use the RedHat distribution Linux, you can edit the /etc/sysconfig/network-scripts/ifcfg-ethX or edit the /etc/network/interfaces under the Debian to set up the IP address on booting process. Or one can use the netconfig command for ip address setting. We provide two types setting in the following examples. One is to assign a fix IP address, netmask, and default gateway.
iwconfig ethx mode master // Set to AP mode iwconfig ethx essid ssid // Set ssid iwpriv ethx set_mac_mode mac_mode //Ref section 3.4.4 Set MAC mode iwconfig ethx channel channel# // Available channel # is1,2,3,4..etc 3.6 Working with Linux WPA supplicant Note: I do the following procedure in Fedora Core2, for other distribution package, you may need install additional libraries(ex. openssl) required to build the wpa supplicant.. 3.6.1 Setup the Linux wpa supplicant - Copy wpa_supplicant.tar.
description , you can refer to the original sample configuration file: wpa_supplicant.conf) wpa_supplicant_psk.conf to meet wpa-psk test condition.
Note2: You can run openssl utility (Included in openssl.zip) in Microsoft Windows OS. Note3: The detailed description, please refer to CertConvReadme.txt. (Located in lnx_wpa_supplicant.tar.gz) For WPA PEAP network={ ssid="example" key_mgmt=WPA-EAP eap=PEAP identity="jhsieh" password="jhsieh" ca_cert="/etc/cert/fluffy.pem" phase1="peaplabel=0" phase2="auth=MSCHAPV2" priority=10 } - After modifying, use the following command to setup WPA connection.
note: @-i: interface name: eth1 @-c: Configuration file: wpa_supplicant_psk.conf @-D: The name of network interface. You will see the following message if wpa-psk connection is built successfully. ... WPA: Sending EAPOL-Key 2/2 ---> The Group handshake is about to finish. ...
address of Station different. The command to specify association address is very simple : ifconfig ethX down ifconfig ethX hw ether 01XXXXXXXXXX ; ifconfig ethX up You must set the first byte = 01 to indicate this is for association address assignment only. The remainder XXXXXXXXXX is byte1-byte5 of PC¡¯ s MAC address. Now, you can set up a bridge and add both wired and wireless interface. Then, you can try to ping to test the connectivity.
4. Turbo Mode This chapter describes how to enhance the performance by enabling the ZyDAS turbo mode. Turbo mode is a composition of Burst Mode and Large Packet Mode. You may known that the so-call ¡° Turbo Mode¡± always has compatibility problems. In order to achieve the highest performance, you need to use the products with same chipset manufacturer (ZyDas) in both AP and Station. The Turbo mode is available on XG-762N with Linux driver only in this moment.
the last frame from that station is a large packet. Therefore, AP can accept station capable of large packet or not. In Station mode, You need to re-associate with the AP to update your Turbo Mode status. You need to remind something in mind. Large packet needs to merge two frames into one. In other words, when there is only one frame in queue, it could take some time to wait another one. If the next one comes too late or not come, it will be sent by a expire checking timer.
5. Conclusion This document doesn¡¯t expl ai n ho wt o set upt he wir el essLAN environment in detail. One may get some problems when setting up the wireless LAN environment. If you have any question about how to set up the environment, you can send an e-mail to us or find the solution on the network.