public interface Dot11Interface
Modifier and Type | Method and Description |
---|---|
int |
command(int cmd,
int val)
This function provides a mechanism to pass command or configuration data to an 802.11~ layer at
runtime.
|
int |
recv(Transmission t)
This function blocks until data arrives, at which point it writes the incoming data and
address information into the Transmission instance passed as argument (respecting the size
of the byte array in the Transmission) and returns the number of bytes received.
|
int |
send(short dest,
byte[] data,
int len)
Send
len bytes from data to the address specified in
dest . |
int |
status()
Returns the current status of the 802.11~ layer.
|
int send(short dest, byte[] data, int len)
len
bytes from data
to the address specified in
dest
.dest
- MAC address to which data should be sentdata
- Buffer containing datalen
- Number of bytes of data to sendint recv(Transmission t)
t
- A Transmission instance to which the incoming data and address information is
written.int status()
int command(int cmd, int val)
cmd
- Specifies the command to sendval
- The value passed with the command