OLD | NEW |
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) 2005,2006 INRIA | 3 * Copyright (c) 2005,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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "ns3/queue-item.h" | 25 #include "ns3/queue-item.h" |
26 #include "ns3/traced-callback.h" | 26 #include "ns3/traced-callback.h" |
27 | 27 |
28 namespace ns3 { | 28 namespace ns3 { |
29 | 29 |
30 class WifiRemoteStationManager; | 30 class WifiRemoteStationManager; |
31 class WifiPhy; | 31 class WifiPhy; |
32 class WifiMac; | 32 class WifiMac; |
33 class NetDeviceQueueInterface; | 33 class NetDeviceQueueInterface; |
34 | 34 |
| 35 /// This value conforms to the 802.11 specification |
| 36 static const uint16_t MAX_MSDU_SIZE = 2304; |
| 37 |
35 /** | 38 /** |
36 * \defgroup wifi Wifi Models | 39 * \defgroup wifi Wifi Models |
37 * | 40 * |
38 * This section documents the API of the ns-3 Wifi module. For a generic functio
nal description, please refer to the ns-3 manual. | 41 * This section documents the API of the ns-3 Wifi module. For a generic functio
nal description, please refer to the ns-3 manual. |
39 */ | 42 */ |
40 | 43 |
41 | 44 |
42 /** | 45 /** |
43 * \brief Hold together all Wifi-related objects. | 46 * \brief Hold together all Wifi-related objects. |
44 * \ingroup wifi | 47 * \ingroup wifi |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 140 |
138 /** | 141 /** |
139 * \brief Assignment operator | 142 * \brief Assignment operator |
140 * \param o object to copy | 143 * \param o object to copy |
141 * \returns the copied object | 144 * \returns the copied object |
142 * | 145 * |
143 * Defined and unimplemented to avoid misuse | 146 * Defined and unimplemented to avoid misuse |
144 */ | 147 */ |
145 WifiNetDevice &operator = (const WifiNetDevice &o); | 148 WifiNetDevice &operator = (const WifiNetDevice &o); |
146 | 149 |
147 /// This value conforms to the 802.11 specification | |
148 static const uint16_t MAX_MSDU_SIZE = 2304; | |
149 | |
150 /** | 150 /** |
151 * Set that the link is up. A link is always up in ad-hoc mode. | 151 * Set that the link is up. A link is always up in ad-hoc mode. |
152 * For a STA, a link is up when the STA is associated with an AP. | 152 * For a STA, a link is up when the STA is associated with an AP. |
153 */ | 153 */ |
154 void LinkUp (void); | 154 void LinkUp (void); |
155 /** | 155 /** |
156 * Set that the link is down (i.e. STA is not associated). | 156 * Set that the link is down (i.e. STA is not associated). |
157 */ | 157 */ |
158 void LinkDown (void); | 158 void LinkDown (void); |
159 /** | 159 /** |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 uint32_t m_ifIndex; //!< IF index | 224 uint32_t m_ifIndex; //!< IF index |
225 bool m_linkUp; //!< link up | 225 bool m_linkUp; //!< link up |
226 TracedCallback<> m_linkChanges; //!< link change callback | 226 TracedCallback<> m_linkChanges; //!< link change callback |
227 mutable uint16_t m_mtu; //!< MTU | 227 mutable uint16_t m_mtu; //!< MTU |
228 bool m_configComplete; //!< configuration complete | 228 bool m_configComplete; //!< configuration complete |
229 }; | 229 }; |
230 | 230 |
231 } //namespace ns3 | 231 } //namespace ns3 |
232 | 232 |
233 #endif /* WIFI_NET_DEVICE_H */ | 233 #endif /* WIFI_NET_DEVICE_H */ |
OLD | NEW |