Left: | ||
Right: |
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) 2006, 2009 INRIA | 3 * Copyright (c) 2006, 2009 INRIA |
4 * Copyright (c) 2009 MIRKO BANCHI | 4 * Copyright (c) 2009 MIRKO BANCHI |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 26 matching lines...) Expand all Loading... | |
37 /** | 37 /** |
38 * \brief Wi-Fi AP state machine | 38 * \brief Wi-Fi AP state machine |
39 * \ingroup wifi | 39 * \ingroup wifi |
40 * | 40 * |
41 * Handle association, dis-association and authentication, | 41 * Handle association, dis-association and authentication, |
42 * of STAs within an infrastructure BSS. | 42 * of STAs within an infrastructure BSS. |
43 */ | 43 */ |
44 class ApWifiMac : public RegularWifiMac | 44 class ApWifiMac : public RegularWifiMac |
45 { | 45 { |
46 public: | 46 public: |
47 /** | |
48 * \brief Get the type ID. | |
49 * \return the object TypeId | |
50 */ | |
47 static TypeId GetTypeId (void); | 51 static TypeId GetTypeId (void); |
48 | 52 |
49 ApWifiMac (); | 53 ApWifiMac (); |
50 virtual ~ApWifiMac (); | 54 virtual ~ApWifiMac (); |
51 | 55 |
52 /** | 56 /** |
53 * \param stationManager the station manager attached to this MAC. | 57 * \param stationManager the station manager attached to this MAC. |
54 */ | 58 */ |
55 virtual void SetWifiRemoteStationManager (Ptr<WifiRemoteStationManager> statio nManager); | 59 virtual void SetWifiRemoteStationManager (Ptr<WifiRemoteStationManager> statio nManager); |
56 | 60 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 Time GetBeaconInterval (void) const; | 102 Time GetBeaconInterval (void) const; |
99 /** | 103 /** |
100 * Start beacon transmission immediately. | 104 * Start beacon transmission immediately. |
101 */ | 105 */ |
102 void StartBeaconing (void); | 106 void StartBeaconing (void); |
103 /** | 107 /** |
104 * Determine whether short slot time should be enabled or not in the BSS. | 108 * Determine whether short slot time should be enabled or not in the BSS. |
105 * Typically, true is returned only when there is no non-erp stations associat ed | 109 * Typically, true is returned only when there is no non-erp stations associat ed |
106 * to the AP, and that short slot time is supported by the AP and by all other | 110 * to the AP, and that short slot time is supported by the AP and by all other |
107 * ERP stations that are associated to the AP. Otherwise, false is returned. | 111 * ERP stations that are associated to the AP. Otherwise, false is returned. |
112 * | |
113 * \returns the short time slot enabled flag. | |
S. Deronne
2017/02/11 18:22:28
\returns whether short slot time should be enabled
| |
108 */ | 114 */ |
109 bool GetShortSlotTimeEnabled (void) const; | 115 bool GetShortSlotTimeEnabled (void) const; |
110 /** | 116 /** |
111 * Determine whether short preamble should be enabled or not in the BSS. | 117 * Determine whether short preamble should be enabled or not in the BSS. |
112 * Typically, true is returned only when the AP and all associated· | 118 * Typically, true is returned only when the AP and all associated· |
113 * stations support short PLCP preamble. | 119 * stations support short PLCP preamble. |
120 * | |
121 * \returns the short preamble enabled flag. | |
S. Deronne
2017/02/11 18:22:28
\returns whether short preamble should be enabled
| |
114 */ | 122 */ |
115 bool GetShortPreambleEnabled (void) const; | 123 bool GetShortPreambleEnabled (void) const; |
116 /** | 124 /** |
117 * Determine whether non-Greenfield HT stations are present or not. | 125 * Determine whether non-Greenfield HT stations are present or not. |
126 * | |
127 * \returns the is non GFHT STAS present flag. | |
S. Deronne
2017/02/11 18:22:28
\returns whether non-Greenfield HT stations are pr
| |
118 */ | 128 */ |
119 bool IsNonGfHtStasPresent (void) const; | 129 bool IsNonGfHtStasPresent (void) const; |
120 /** | 130 /** |
121 * Determine the VHT operational channel width. | 131 * Determine the VHT operational channel width. |
122 */ | 132 */ |
123 uint8_t GetVhtOperationalChannelWidth (void) const; | 133 uint8_t GetVhtOperationalChannelWidth (void) const; |
124 | 134 |
125 /** | 135 /** |
126 * Assign a fixed random variable stream number to the random variables | 136 * Assign a fixed random variable stream number to the random variables |
127 * used by this model. Return the number of streams (possibly zero) that | 137 * used by this model. Return the number of streams (possibly zero) that |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
285 std::list<Mac48Address> m_staList; //!< List of all stations currently associated to the AP | 295 std::list<Mac48Address> m_staList; //!< List of all stations currently associated to the AP |
286 std::list<Mac48Address> m_nonErpStations; //!< List of all non-ERP stations c urrently associated to the AP | 296 std::list<Mac48Address> m_nonErpStations; //!< List of all non-ERP stations c urrently associated to the AP |
287 std::list<Mac48Address> m_nonHtStations; //!< List of all non-HT stations cu rrently associated to the AP | 297 std::list<Mac48Address> m_nonHtStations; //!< List of all non-HT stations cu rrently associated to the AP |
288 bool m_enableNonErpProtection; //!< Flag whether protection mechan ism is used or not when non-ERP STAs are present within the BSS | 298 bool m_enableNonErpProtection; //!< Flag whether protection mechan ism is used or not when non-ERP STAs are present within the BSS |
289 bool m_disableRifs; //!< Flag whether to force RIFS to be disabled within the BSS If non-HT STAs are detected | 299 bool m_disableRifs; //!< Flag whether to force RIFS to be disabled within the BSS If non-HT STAs are detected |
290 }; | 300 }; |
291 | 301 |
292 } //namespace ns3 | 302 } //namespace ns3 |
293 | 303 |
294 #endif /* AP_WIFI_MAC_H */ | 304 #endif /* AP_WIFI_MAC_H */ |
OLD | NEW |