LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2006 INRIA | 3 * Copyright (c) 2006 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> | 18 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 */ | 19 */ |
20 | 20 |
21 #ifndef SUPPORTED_RATES_H | 21 #ifndef SUPPORTED_RATES_H |
22 #define SUPPORTED_RATES_H | 22 #define SUPPORTED_RATES_H |
23 | 23 |
24 #include "ns3/buffer.h" | |
25 #include "wifi-information-element.h" | 24 #include "wifi-information-element.h" |
26 | 25 |
27 namespace ns3 { | 26 namespace ns3 { |
28 | 27 |
29 class SupportedRates; | 28 class SupportedRates; |
30 | 29 |
31 /** | 30 /** |
32 * \brief The Extended Supported Rates Information Element | 31 * \brief The Extended Supported Rates Information Element |
33 * \ingroup wifi | 32 * \ingroup wifi |
34 * | 33 * |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 SupportedRates (const SupportedRates &); | 134 SupportedRates (const SupportedRates &); |
136 /** | 135 /** |
137 * assignment operator | 136 * assignment operator |
138 * | 137 * |
139 * \param rates the rates to assign | 138 * \param rates the rates to assign |
140 * \returns the assigned value | 139 * \returns the assigned value |
141 */ | 140 */ |
142 SupportedRates& operator= (const SupportedRates& rates); | 141 SupportedRates& operator= (const SupportedRates& rates); |
143 | 142 |
144 /** | 143 /** |
145 * This defines the maximum number of suorted rates that a STA is | 144 * This defines the maximum number of supported rates that a STA is |
146 * allowed to have. Currently this number is set for IEEE 802.11b/g and SISO IEE
802.11n | 145 * allowed to have. Currently this number is set for IEEE 802.11b/g and SISO IEE
802.11n |
147 * stations which need 2 rates each from Clauses 15 and 18, and then 8 | 146 * stations which need 2 rates each from Clauses 15 and 18, and then 8 |
148 * from Clause 19. | 147 * from Clause 19. |
149 */ | 148 */ |
150 static const uint8_t MAX_SUPPORTED_RATES = 32; | 149 static const uint8_t MAX_SUPPORTED_RATES = 32; |
151 | 150 |
152 /** | 151 /** |
153 * Add the given rate to the supported rates. | 152 * Add the given rate to the supported rates. |
154 * | 153 * |
155 * \param bs the rate to be added | 154 * \param bs the rate to be added |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 private: | 253 private: |
255 uint8_t m_nRates; //!< Number of supported rates | 254 uint8_t m_nRates; //!< Number of supported rates |
256 uint8_t m_rates[MAX_SUPPORTED_RATES]; //!< List of supported bitrate (divided
by 500000) | 255 uint8_t m_rates[MAX_SUPPORTED_RATES]; //!< List of supported bitrate (divided
by 500000) |
257 }; | 256 }; |
258 | 257 |
259 std::ostream &operator << (std::ostream &os, const SupportedRates &rates); | 258 std::ostream &operator << (std::ostream &os, const SupportedRates &rates); |
260 | 259 |
261 } //namespace ns3 | 260 } //namespace ns3 |
262 | 261 |
263 #endif /* SUPPORTED_RATES_H */ | 262 #endif /* SUPPORTED_RATES_H */ |
LEFT | RIGHT |