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) 2008 INRIA | 3 * Copyright (c) 2008 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 WIFI_MAC_H | 21 #ifndef WIFI_MAC_H |
22 #define WIFI_MAC_H | 22 #define WIFI_MAC_H |
23 | 23 |
24 #include "wifi-phy-standard.h" | 24 #include "wifi-phy-standard.h" |
25 #include "wifi-remote-station-manager.h" | 25 #include "wifi-remote-station-manager.h" |
26 #include "dca-txop.h" | 26 #include "txop.h" |
27 #include "ssid.h" | 27 #include "ssid.h" |
28 #include "qos-utils.h" | 28 #include "qos-utils.h" |
29 | 29 |
30 namespace ns3 { | 30 namespace ns3 { |
31 | 31 |
32 /** | 32 /** |
33 * \brief base class for all MAC-level wifi objects. | 33 * \brief base class for all MAC-level wifi objects. |
34 * \ingroup wifi | 34 * \ingroup wifi |
35 * | 35 * |
36 * This class encapsulates all the low-level MAC functionality | 36 * This class encapsulates all the low-level MAC functionality |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 protected: | 307 protected: |
308 /** | 308 /** |
309 * \param dcf the DCF to be configured | 309 * \param dcf the DCF to be configured |
310 * \param cwmin the minimum congestion window for the DCF | 310 * \param cwmin the minimum congestion window for the DCF |
311 * \param cwmax the maximum congestion window for the DCF | 311 * \param cwmax the maximum congestion window for the DCF |
312 * \param isDsss flag to indicate whether PHY is DSSS or HR/DSSS | 312 * \param isDsss flag to indicate whether PHY is DSSS or HR/DSSS |
313 * \param ac the access category for the DCF | 313 * \param ac the access category for the DCF |
314 * | 314 * |
315 * Configure the DCF with appropriate values depending on the given access cat
egory. | 315 * Configure the DCF with appropriate values depending on the given access cat
egory. |
316 */ | 316 */ |
317 void ConfigureDcf (Ptr<DcaTxop> dcf, uint32_t cwmin, uint32_t cwmax, bool isDs
ss, AcIndex ac); | 317 void ConfigureDcf (Ptr<Txop> dcf, uint32_t cwmin, uint32_t cwmax, bool isDsss,
AcIndex ac); |
318 | 318 |
319 | 319 |
320 private: | 320 private: |
321 /** | 321 /** |
322 * \return the default maximum propagation delay | 322 * \return the default maximum propagation delay |
323 * | 323 * |
324 * By default, we get the maximum propagation delay from 1000 m and speed of l
ight | 324 * By default, we get the maximum propagation delay from 1000 m and speed of l
ight |
325 * (3e8 m/s). | 325 * (3e8 m/s). |
326 */ | 326 */ |
327 static Time GetDefaultMaxPropagationDelay (void); | 327 static Time GetDefaultMaxPropagationDelay (void); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 * | 494 * |
495 * \see class CallBackTraceSource | 495 * \see class CallBackTraceSource |
496 */ | 496 */ |
497 TracedCallback<Ptr<const Packet> > m_macRxDropTrace; | 497 TracedCallback<Ptr<const Packet> > m_macRxDropTrace; |
498 }; | 498 }; |
499 | 499 |
500 } //namespace ns3 | 500 } //namespace ns3 |
501 | 501 |
502 #endif /* WIFI_MAC_H */ | 502 #endif /* WIFI_MAC_H */ |
503 | 503 |
OLD | NEW |