background image

1. Introduction:   

Because more and more people install the Linux operating system in the desktop and 
notebook, we provide the Linux solution of our ZD1211 802.11b+g Wireless LAN Card. 
ZD1211 provides 802.11 b+g wireless solution for USB interface. In our ZD1211 
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 ZD1211 under the Linux operating system.   
 

2.1 Requirements: 

1.

 

Kernel 2.4+ . The driver had success built in Redhat9, Fedora Core2,3 ,and Debian 
3.1. You can easily build it without any problem 

2.

 

To build zd1211 you will need: Configured kernel source code for the kernel you are 
running. Ideally, Configured means that you have at least run 'make config', 'make 
enuconfig', or 'make xconfig'. If your platform is not SMP system, please don't 
config SMP supported, because when module loaded, this will make unresolved 
symbol. 

3.

 

Make sure your kernel usb 2.0 support is running 
-

 

Use lsmod to check "ehci-hcd" module is loaded. 

-

 

If host is not support usb 2.0, zd1211 will run under pure-b mode. 

 
 

2. 

Building the device driver:   

In this section, we will describe how to build our ZD1211 Linux driver under the Linux 
operating system.   
 

2.1 Uncompress the package:   

tar zxvf ZD1211LnxDrv_xxxx.tar.gz (where xxxx is the version number, such as 
2_0_0_0)  
 
The first thing one should do is uncompress this package by tar. After untar this package, 
you can see the source files. One should change directory into this directory for 
proceeding the next step.   
 

2.2 Build and install the package:   

The package contains drivers for ZD1211 and ZD1211B. If you doesn’t have specified 
request, both of them will be installed.   
Under the extracted directory, there is a Makefile in it. Because our driver can support for 
kernel 2.4 and kernel 2.6, there are two sets of rule in the Makefile. One has to modify 
the Makefile according to the path of 

“kernel source tree” 

and the version of the kernel 

in your system. In the Makefile, you may see the following statements,   
# if the kernel is 2.6.x, turn on this   
#KERN_26=y  
#KERNEL_SOURCE=/usr/src/linux-2.6.7  
# if the kernel is 2.4.x, turn on this   
KERN_24=y  
KERNEL_SOURCE=/usr/src/linux-2.4.20-8  

Summary of Contents for GW-US54GD

Page 1: ...2 4 GHz IEEE 802 11g 54Mbps Wireless LAN USB Adapter with Wi Fi Detector GW US54GD ZD1211 Linux Installation Guide Planex Communications Inc ...

Page 2: ...mod to check ehci hcd module is loaded If host is not support usb 2 0 zd1211 will run under pure b mode 2 Building the device driver In this section we will describe how to build our ZD1211 Linux driver under the Linux operating system 2 1 Uncompress the package tar zxvf ZD1211LnxDrv_xxxx tar gz where xxxx is the version number such as 2_0_0_0 The first thing one should do is uncompress this packa...

Page 3: ...or messages while compiling menudbg You can ignore it and get apdbg only 3 Getting Start 3 1 Load the driver One can use the modprobe v zd1211 or zd1211b to load our driver In order to check whether our driver is loaded successfully one can use the lsmod for this check If our driver is loaded successfully the following messages should be seen zd1211 183576 0 unused Please note that the 183576 may ...

Page 4: ... iwconfig ethX rts 250 frag _threshold Set the Fragmentation Threshold Example iwconfig ethX frag 512 key enc ryption Used to manipulate encryption or scrambling keys and encryption mode To set the current encryption key just enter the key in hex digits as XXXX XXXX XXXX XXXX or XXXXXXXX To set a key other than the current key append index to the key itself You can also enter the key as an ASCII s...

Page 5: ...d key authentication requires a WEP key 3 4 2 Set preamble type One can set the preamble type to our driver by the following command iwpriv ethX set_preamble Preamble Type 0 Long preamble 1 Short preamble 3 4 3 Get preamble type One can get the preamble type of our driver by the following command iwpriv ethX get_preamble 3 4 4 Set MAC mode Because the ZD1211 is b g solution we support the PURE_A P...

Page 6: ...on information includes 1 get_Region To get the current region setting iwpriv ethX get_Region Æ You will get a region string 2 set_Region To set the region iwpriv ethX set_Region RegionID refer tofollowing table Region ID Region String Channel Countries 1 USA 1 11 USA Canada Argentina Brazil Ukraine China HongKong Korea New Zealand 2 Taiwan Europe 1 13 Taiwan Europe Spain Austria Belgium Switzerla...

Page 7: ...f getting ip from DHCP server DEVICE eth0 BOOTPROTO dhcp ONBOOT yes 3 5 3 Setting Access Point 3 5 3 1 The typical setting procedure 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 Continuous TX Operation When you make the driver you also get...

Page 8: ...xvf lnx_wpa_supplicant tar gz Then a subdirectory of wpa_supplicant will be created under the current directory Enter subdirectory wpa_supplicant Delete the original config file by rm f config Edit Makefile make sure the following statements in mkconfig section echo CONFIG_IEEE8021X_EAPOL y config echo CONFIG_EAP_MD5 y config echo CONFIG_MSCHAPV2 y config echo CONFIG_EAP_PEAP y config echo CONFIG_...

Page 9: ...WPA EAP pairwise CCMP TKIP group CCMP TKIP WEP104 WEP40 eap TLS identity Administrator zydas com tw ca_cert etc cert fluffy pem client_cert etc cert id pem private_key etc cert id_key pem private_key_passwd password priority 2 Note1 The fluffy pem is created by openssl pkcs12 in fluffy pfx passin pass password out fluffy pem cacerts nokeys The id_key pem is created by openssl pkcs12 in fluffy pfx ...

Page 10: ... 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 EAPOL SUPP_PAE entering state SUCCESS EAP EAP entering state SUCCESS EAPOL SUPP_PAE entering state AUTHENTICATED EAPOL SUPP_BE entering state IDLE Note of wpa supplicant operation issue The WPA supplicant should be keep runni...

Page 11: ...cate file and private key file 1 First please install a personal certificate via a web browser IE 6 0 or later to a Radius server Windows 2003 Server or Windows 2000 Server edition 2 Open MS IE6 0 or later Select Tools Internet Options Content Certificates ...

Page 12: ...Press Export Select Yes export the private key ...

Page 13: ...Select Personal Information Exchange Input the Password This password will be the same password in passing parameter input ...

Page 14: ...ish the certificate exporting The exported certificate file will be suffixed with extension name pfx And you can use this file to generate 1 Root Certificate 2 Personal Certificate 3 Personal Private key There are required in WPA EAP TLS mode ...

Reviews: