Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3161)

Unified Diff: src/wifi/model/ampdu-tag.h

Issue 14549044: Adding MPDU aggregation
Patch Set: changed A-MPDU implementation to simplify PCAP generation Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wifi/model/ampdu-subframe-header.cc ('k') | src/wifi/model/ampdu-tag.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wifi/model/ampdu-tag.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/wifi/model/ampdu-tag.h
@@ -0,0 +1,71 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2009 MIRKO BANCHI
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Ghada Badawy <gbadawy@rim.com>
+ */
+#ifndef AMPDU_TAG_H
+#define AMPDU_TAG_H
+
+#include "ns3/packet.h"
+
+namespace ns3 {
+
+class Tag;
+
+
+
+
+/**
+ * \ingroup wifi
+ *
+ * The aim of the AmpduTag is to provide means for a MAC to
+ * specify that the packet includes AMPDU since this is done in H-SIG and there is no H-SIG representation in ns3
+ */
+class AmpduTag : public Tag
+{
+public:
+ static TypeId GetTypeId (void);
+ virtual TypeId GetInstanceTypeId (void) const;
+
+ /**
+ * Create a AmpduTag with the default =0 no Ampdu
+ */
+ AmpduTag ();
+
+ /**
+ * Set the Ampdu to 1.
+ */
+ void SetAmpdu (bool supported);
+ void SetNoOfMpdus (uint8_t noofmpdus);
+
+
+ virtual void Serialize (TagBuffer i) const;
+ virtual void Deserialize (TagBuffer i);
+ virtual uint32_t GetSerializedSize () const;
+ virtual void Print (std::ostream &os) const;
+
+ bool GetAmpdu (void) const;
+ uint8_t GetNoOfMpdus (void) const;
+
+private:
+ uint8_t m_ampdu;
+ uint8_t m_noOfMpdus;
+};
+
+} // namespace ns3
+
+#endif /* AMPDU_TAG_H */
« no previous file with comments | « src/wifi/model/ampdu-subframe-header.cc ('k') | src/wifi/model/ampdu-tag.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b