|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.emulator.wlandev.WLANDevice
edu.cmu.emulator.wlandev.MadwifiNGDevice
public class MadwifiNGDevice
Field Summary | |
---|---|
protected boolean |
bOnly
|
static double[] |
bRates
|
static String |
BRIDGE_DEV_NAME
|
protected boolean |
bridgeAP
|
protected String |
bridgeDevName
|
static String |
DEV_NAME
|
protected boolean |
fastProbeEnabled
|
protected RemoteProcess |
fpRelayReceiverProc
|
protected RemoteProcess |
fpRelaySenderProc
|
static double[] |
gRates
|
protected static long |
IWCONFIG_RETRY_INTERVAL
|
static int |
M_B
|
static int |
M_BG
|
static int |
M_BRIDGE_AP
|
static int |
M_ENHANCED_ROAM
|
static int |
M_FAST_PROBE
|
protected static int |
MAX_IWCONFIG_RETRIES
|
protected static long |
MSG_TIMEOUT_MILLIS
|
static String |
VLAN_BASE_DEV_NAME
|
static String |
VLAN_DEV_NAME
|
static int |
VLAN_NUM
|
protected String |
vlanBaseDevName
|
protected String |
vlanDevName
|
protected int |
vlanNum
|
Fields inherited from class edu.cmu.emulator.wlandev.WLANDevice |
---|
channel, dComm, devName, emuNode, essid, ip, mac, macToEmuNodeMap, prefix, txRateMbps, useSudo |
Constructor Summary | |
---|---|
MadwifiNGDevice(EmuNode emuNode,
DaemonCommunicator dComm,
byte[] ip,
String essid,
int channel)
Construct a MadwifiNGDevice. |
|
MadwifiNGDevice(EmuNode emuNode,
DaemonCommunicator dComm,
byte[] ip,
String essid,
int channel,
int flags)
|
Method Summary | |
---|---|
void |
adHocMode()
Sets the device into ad hoc mode using the current desired essid and channel. |
void |
adHocMode(String essid,
int channel)
Sets the device into ad hoc mode with the given essid and channel. |
void |
apMode()
Sets the device into AP mode using the current desired essid and channel. |
void |
apMode(String essid,
int channel)
Sets the device into AP mode with the given essid and channel. |
void |
create()
Creates a the device. |
protected void |
createBridgeInfrastructure()
|
void |
destroy()
Destroys the device. |
protected void |
destroyBridgeInfrastructure()
|
protected void |
diversityOff()
|
protected void |
fpRelayStart()
|
protected void |
fpRelayStop()
|
gmj.net.PhysicalAddress |
getBSSID()
Get the BSSID reported by iwconfig. |
int |
getSignalLevel()
Get the current signal level reported by iwconfig. |
void |
ifconfig()
Set the actual device ip address to the desired ip using ifconfig. |
void |
managedMode()
Sets the device into managed mode using the current desired essid and channel. |
void |
managedMode(String essid,
int channel)
Sets the device into managed mode with the given essid and channel. |
Methods inherited from class edu.cmu.emulator.wlandev.WLANDevice |
---|
determineMAC, getDevName, getEmuNodeFromMAC, getIP, getMAC, ifconfigToArrayList, iwconfig, iwconfig, iwconfigToArrayList, setTxRate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RemoteProcess fpRelaySenderProc
protected RemoteProcess fpRelayReceiverProc
protected boolean fastProbeEnabled
protected boolean bridgeAP
protected String bridgeDevName
protected String vlanDevName
protected String vlanBaseDevName
protected int vlanNum
protected boolean bOnly
public static final double[] gRates
public static final double[] bRates
public static String DEV_NAME
public static String BRIDGE_DEV_NAME
public static String VLAN_BASE_DEV_NAME
public static int VLAN_NUM
public static String VLAN_DEV_NAME
protected static final long MSG_TIMEOUT_MILLIS
protected static final int MAX_IWCONFIG_RETRIES
protected static final long IWCONFIG_RETRY_INTERVAL
public static final int M_FAST_PROBE
public static final int M_ENHANCED_ROAM
public static final int M_BRIDGE_AP
public static final int M_B
public static final int M_BG
Constructor Detail |
---|
public MadwifiNGDevice(EmuNode emuNode, DaemonCommunicator dComm, byte[] ip, String essid, int channel)
emuNode
- the emuNode for the devicedComm
- the dComm running on the nodeip
- the desired ip for the deviceessid
- the desired essidchannel
- the desired channelpublic MadwifiNGDevice(EmuNode emuNode, DaemonCommunicator dComm, byte[] ip, String essid, int channel, int flags)
Method Detail |
---|
public void apMode(String essid, int channel)
apMode
in class WLANDevice
essid
- the new essidchannel
- the new channelpublic void apMode()
protected void destroyBridgeInfrastructure()
protected void createBridgeInfrastructure()
public void ifconfig()
ifconfig
in class WLANDevice
public void managedMode(String essid, int channel)
managedMode
in class WLANDevice
essid
- the new essidchannel
- the channel to begin searching onpublic void managedMode()
public void adHocMode(String essid, int channel)
adHocMode
in class WLANDevice
essid
- the new essidchannel
- the new channelpublic void adHocMode()
public void create()
create
in class WLANDevice
public void destroy()
destroy
in class WLANDevice
protected void diversityOff()
protected void fpRelayStart()
protected void fpRelayStop()
public gmj.net.PhysicalAddress getBSSID()
getBSSID
in class WLANDevice
public int getSignalLevel()
getSignalLevel
in class WLANDevice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |