INET Framework for OMNeT++/OMNEST
Ieee80211MgmtSTA.cc File Reference
#include "Ieee80211MgmtSTA.h"
#include "Ieee802Ctrl_m.h"
#include "NotifierConsts.h"
#include "PhyControlInfo_m.h"
#include "RadioState.h"
#include "ChannelControl.h"

Defines

#define MK_AUTH_TIMEOUT   1
#define MK_ASSOC_TIMEOUT   2
#define MK_SCAN_SENDPROBE   3
#define MK_SCAN_MINCHANNELTIME   4
#define MK_SCAN_MAXCHANNELTIME   5
#define MK_BEACON_TIMEOUT   6
#define MAX_BEACONS_MISSED   3.5

Functions

 Define_Module (Ieee80211MgmtSTA)
std::ostream & operator<< (std::ostream &os, const Ieee80211MgmtSTA::ScanningInfo &scanning)
std::ostream & operator<< (std::ostream &os, const Ieee80211MgmtSTA::APInfo &ap)
std::ostream & operator<< (std::ostream &os, const Ieee80211MgmtSTA::AssociatedAPInfo &assocAP)

Define Documentation

#define MAX_BEACONS_MISSED   3.5
#define MK_ASSOC_TIMEOUT   2
#define MK_AUTH_TIMEOUT   1
#define MK_BEACON_TIMEOUT   6
#define MK_SCAN_MAXCHANNELTIME   5
#define MK_SCAN_MINCHANNELTIME   4
#define MK_SCAN_SENDPROBE   3

Function Documentation

Define_Module ( Ieee80211MgmtSTA  )
std::ostream& operator<< ( std::ostream &  os,
const Ieee80211MgmtSTA::AssociatedAPInfo assocAP 
)
{
    os << "AP addr=" << assocAP.address
       << " chan=" << assocAP.channel
       << " ssid=" << assocAP.ssid
       << " beaconIntvl=" << assocAP.beaconInterval
       << " receiveSeq="  << assocAP.receiveSequence
       << " rxPower=" << assocAP.rxPower;
    return os;
}
std::ostream& operator<< ( std::ostream &  os,
const Ieee80211MgmtSTA::APInfo ap 
)
{
    os << "AP addr=" << ap.address
       << " chan=" << ap.channel
       << " ssid=" << ap.ssid
       //TBD supportedRates
       << " beaconIntvl=" << ap.beaconInterval
       << " rxPower=" << ap.rxPower
       << " authSeqExpected=" << ap.authSeqExpected
       << " isAuthenticated=" << ap.isAuthenticated;
    return os;
}
std::ostream& operator<< ( std::ostream &  os,
const Ieee80211MgmtSTA::ScanningInfo scanning 
)
{
    os << "activeScan=" << scanning.activeScan
       << " probeDelay=" << scanning.probeDelay
       << " curChan=";
    if (scanning.channelList.empty())
        os << "<none>";
    else
        os << scanning.channelList[scanning.currentChannelIndex];
    os << " minChanTime=" << scanning.minChannelTime
       << " maxChanTime=" << scanning.maxChannelTime;
    os << " chanList={";
    for (int i=0; i<(int)scanning.channelList.size(); i++)
        os << (i==0 ? "" : " ") << scanning.channelList[i];
    os << "}";

    return os;
}