Name | Type | Description |
---|---|---|
Ieee80211NicSTASimplified | compound module |
This NIC implements an infrastructure mode 802.11 network interface card for a host (STA), but using a simplified mgmt module that does not support handovers. |
// // Copyright (C) 2006 Andras Varga // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program; if not, see <http://www.gnu.org/licenses/>. // package inet.linklayer.ieee80211; import inet.linklayer.ieee80211.mac.Ieee80211Mac; import inet.linklayer.ieee80211.mgmt.Ieee80211MgmtSTASimplified; import inet.linklayer.radio.Ieee80211Radio; // // This NIC implements an infrastructure mode 802.11 network interface card // for a host (STA), but using a simplified mgmt module that does not // support handovers. // module Ieee80211NicSTASimplified { parameters: @display("i=block/ifcard"); gates: input uppergateIn; // to upper layers output uppergateOut; // from upper layers input radioIn @labels(AirFrame); // to receive AirFrames submodules: mgmt: Ieee80211MgmtSTASimplified { 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.uppergateOut --> mac.lowergateIn; radio.uppergateIn <-- mac.lowergateOut; mac.uppergateOut --> mgmt.macIn; mac.uppergateIn <-- mgmt.macOut; mgmt.uppergateOut --> uppergateOut; mgmt.uppergateIn <-- uppergateIn; }