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. Another is to get IP configuration from a DHCP server.
3.5.1 Fixed Setting:
# This is an example of fixed IP setting
DEVICE=’eth0'
IPADDR='192.168.2.98'
NETMASK='255.255.255.0'
NETWORK='192.168.2.0'
BROADCAST='192.168.2.255'
ONBOOT='yes'
GATEWAY='192.168.2.254'
3.5.2 Get IP setting from DHCP:
# This is an example of 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 the
apdbg
configuration tool. One of its most
important feature is to enable/set continuous tx operation.
3.6.1 Turn On/Off Continuous TX Operation
Usage :
iwconfig ethX mode monitor ( only issue for 1 time)
apdbg ethX cont_tx 0
RateID
This command will start the continuous tx with your specified rate. When the rate is
greater than 0xB, it turn off the operation. Please remember that if you want to change
different rate or channel, you must turn off continuous tx operation first.
The RateID Table