NED File src/inet/linklayer/ieee80211/mgmt/Ieee80211MgmtSta.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Used in 802.11 infrastructure mode: handles management frames for a station (STA). |
Source code¶
//
// Copyright (C) 2006 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
package inet.linklayer.ieee80211.mgmt;
import inet.common.SimpleModule;
//
// Used in 802.11 infrastructure mode: handles management frames for a station (STA).
//
// This module accepts commands such as Scan, Authenticate, Deauthenticate,
// Associate, Reassociate, Deassociate from a connected agent module, and carries
// out the requested action by sending/receiving management frames, switching
// channels, etc.
//
// It implements both active and passive scanning (where active means sending
// Probe frames). The authentication process is simulated by exchanging dummy
// messages, i.e. there is no actual cryptography or its detailed simulation
// involved.
//
// Relies on the MAC layer (~Ieee80211Mac) for reception and transmission of frames.
//
simple Ieee80211MgmtSta extends SimpleModule like IIeee80211Mgmt
{
parameters:
@class(Ieee80211MgmtSta);
string interfaceTableModule; // The path to the InterfaceTable module
int numChannels = default(1); // Number of channels to scan
string mibModule;
string macModule; // The path to the MAC module
@display("i=block/cogwheel");
@signal[l2Associated](type=inet::NetworkInterface);
@signal[l2BeaconLost](type=inet::NetworkInterface);
gates:
input macIn @labels(Ieee80211MacHeader);
output macOut @labels(Ieee80211MacHeader);
input agentIn; // Used for attaching an agent algorithm
output agentOut; // Used for attaching an agent algorithm
}