Doxy doc for Wifi channel switching

This commit is contained in:
Ramon Bauza
2009-09-15 14:33:04 +02:00
parent 5c884dcef4
commit 55bf5fc2e7
6 changed files with 20 additions and 2 deletions

View File

@@ -127,6 +127,9 @@ private:
void NotifyAccessGranted (void);
void NotifyInternalCollision (void);
void NotifyCollision (void);
/**
* When a channel switching occurs, enqueued packets are removed.
*/
void NotifyChannelSwitching (void);
/* event handlers */
void GotCts (double snr, WifiMode txMode);

View File

@@ -260,6 +260,8 @@ public:
* \param duration expected duration of channel switching period
*
* Notify the DCF that a channel switching period has just started.
* During swtiching state, new packets can be enqueued in DcaTxop/EdcaTxop
* but they won't access to the medium until the end of the channel switching.
*/
void NotifySwitchingStartNow (Time duration);
/**

View File

@@ -101,6 +101,9 @@ public:
void NotifyAccessGranted (void);
void NotifyInternalCollision (void);
void NotifyCollision (void);
/**
* When a channel switching occurs, enqueued packets are removed.
*/
void NotifyChannelSwitching (void);
/*event handlers*/

View File

@@ -360,7 +360,8 @@ public:
* \param duration switching delay duration.
*
* This method is typically invoked by the PhyMacLowListener to notify
* the MAC layer that a channel switching occured.
* the MAC layer that a channel switching occured. When a channel switching
* occurs, pending MAC transmissions (RTS, CTS, DATA and ACK) are cancelled.
*/
void NotifySwitchingStartNow (Time duration);
private:

View File

@@ -76,7 +76,9 @@ public:
* \param preamble the preamble associated to the packet
*
* This method should not be invoked by normal users. It is
* currently invoked only from WifiPhy::Send.
* currently invoked only from WifiPhy::Send. YansWifiChannel
* delivers packets only between PHYs with the same m_channelNumber,
* e.g. PHYs that are operating on the same channel.
*/
void Send (Ptr<YansWifiPhy> sender, Ptr<const Packet> packet, double txPowerDbm,
WifiMode wifiMode, WifiPreamble preamble) const;

View File

@@ -77,6 +77,13 @@ public:
*
* where Starting channel frequency is standard-dependent, see SetStandard()
* as defined in IEEE 802.11-2007 17.3.8.3.2.
*
* YansWifiPhy can switch among different channels. Basically, YansWifiPhy
* has a private attribute m_channelNumber that identifies the channel the
* PHY operates on. Channel switching cannot interrupt an ongoing transmission.
* When PHY is in TX state, the channel switching is postponed until the end
* of the current transmission. When the PHY is in SYNC state, the channel
* switching causes the drop of the sync packet.
*/
void SetChannelNumber (uint16_t id);
/// Return current channel number, see SetChannelNumber()