This NIC implements an 802.11 network interface card, in a STA, using infrastructure mode.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
WirelessHost | compound module |
Models a host with one wireless (802.11b) card in infrastructure mode. This module is basically a StandardHost with an Ieee80211NicSTA added. It should be used in conjunction with WirelessAP, or any other AP model which contains Ieee80211NicAP. |
Name | Value | Description |
---|---|---|
display | i=block/ifcard |
Name | Direction | Size | Description |
---|---|---|---|
uppergateIn | input |
to upper layers |
|
uppergateOut | output |
from upper layers |
|
radioIn | input |
to receive AirFrames |
Name | Type | Default value | Description |
---|---|---|---|
agent.activeScan | bool | true |
selects between active and passive scanning |
agent.channelsToScan | string | "" |
list of channel numbers to scan (space delimited); empty means all channels |
agent.probeDelay | double |
delay before sending a probe request during active scanning |
|
agent.minChannelTime | double |
min interval to spend on a channel during active scanning |
|
agent.maxChannelTime | double |
channel time for passive scanning, and max channel time for active scanning |
|
agent.authenticationTimeout | double | 5s |
timeout for the authentication procedure |
agent.associationTimeout | double | 5s |
timeout for the association procedure |
mgmt.frameCapacity | int | 100 |
maximum queue length |
mac.address | string | "auto" |
MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0. |
mac.maxQueueSize | int |
max queue length in frames; only used if queueModule=="" |
|
mac.bitrate | double | ||
mac.rtsThresholdBytes | int | 2346B |
longer messages will be sent using RTS/CTS |
mac.retryLimit | int | -1 |
maximum number of retries per message, -1 means default |
mac.cwMinData | int | -1 |
contention window for normal data frames, -1 means default |
mac.cwMinBroadcast | int | -1 |
contention window for broadcast messages, -1 means default |
mac.mtu | int | 1500 | |
radio.channelNumber | int | 0 |
channel identifier |
radio.transmitterPower | double | 20mW |
power used for transmission of messages (in mW) |
radio.bitrate | double |
(in bits/s) |
|
radio.thermalNoise | double | -110dBm |
base noise level (dBm) |
radio.pathLossAlpha | double | 2 |
used by the path loss calculation |
radio.shadowingDeviation | double | 0dB |
used by the shadowing model calculation |
radio.snirThreshold | double | 4dB |
if signal-noise ratio is below this threshold, frame is considered noise (in dB) |
radio.sensitivity | double |
received signals with power below sensitivity are ignored |
// // This NIC implements an 802.11 network interface card, // in a STA, using infrastructure mode. // module Ieee80211NicSTA { parameters: @display("i=block/ifcard"); gates: input uppergateIn; // to upper layers output uppergateOut; // from upper layers input radioIn @labels(AirFrame); // to receive AirFrames submodules: agent: Ieee80211AgentSTA { parameters: @display("p=202,69"); } mgmt: Ieee80211MgmtSTA { parameters: @display("p=96,69;q=wlanDataQueue"); } mac: Ieee80211Mac { parameters: queueModule = "mgmt"; @display("p=96,155"); } radio: Ieee80211Radio { parameters: @display("p=96,240"); } connections: radioIn --> radio.radioIn; radio.uppergateIn <-- mac.lowergateOut; radio.uppergateOut --> mac.lowergateIn; mac.uppergateOut --> mgmt.macIn; mac.uppergateIn <-- mgmt.macOut; mgmt.uppergateOut --> uppergateOut; mgmt.uppergateIn <-- uppergateIn; mgmt.agentOut --> agent.mgmtIn; mgmt.agentIn <-- agent.mgmtOut; }