View | Details | Raw Unified | Return to bug 1797
Collapse All | Expand All

(-)a/src/wifi/model/aarf-wifi-manager.cc (+14 lines)
 Lines 273-276   AarfWifiManager::IsLowLatency (void) const Link Here 
273
  return true;
273
  return true;
274
}
274
}
275
275
276
bool
277
AarfWifiManager::IsHtSupported (void) const
278
{
279
  NS_LOG_FUNCTION (this);
280
  return false;
281
}
282
283
bool
284
AarfWifiManager::IsVhtSupported (void) const
285
{
286
  NS_LOG_FUNCTION (this);
287
  return false;
288
}
289
276
} //namespace ns3
290
} //namespace ns3
(-)a/src/wifi/model/aarf-wifi-manager.h (+2 lines)
 Lines 56-61   private: Link Here 
56
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
56
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
57
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
57
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
58
  virtual bool IsLowLatency (void) const;
58
  virtual bool IsLowLatency (void) const;
59
  virtual bool IsHtSupported (void) const;
60
  virtual bool IsVhtSupported (void) const;
59
61
60
  uint32_t m_minTimerThreshold;
62
  uint32_t m_minTimerThreshold;
61
  uint32_t m_minSuccessThreshold;
63
  uint32_t m_minSuccessThreshold;
(-)a/src/wifi/model/aarfcd-wifi-manager.cc (+14 lines)
 Lines 356-361   AarfcdWifiManager::IsLowLatency (void) const Link Here 
356
  return true;
356
  return true;
357
}
357
}
358
358
359
bool
360
AarfcdWifiManager::IsHtSupported (void) const
361
{
362
  NS_LOG_FUNCTION (this);
363
  return false;
364
}
365
366
bool
367
AarfcdWifiManager::IsVhtSupported (void) const
368
{
369
  NS_LOG_FUNCTION (this);
370
  return false;
371
}
372
359
void
373
void
360
AarfcdWifiManager::CheckRts (AarfcdWifiRemoteStation *station)
374
AarfcdWifiManager::CheckRts (AarfcdWifiRemoteStation *station)
361
{
375
{
(-)a/src/wifi/model/aarfcd-wifi-manager.h (+2 lines)
 Lines 73-78   private: Link Here 
73
  virtual bool DoNeedRts (WifiRemoteStation *station,
73
  virtual bool DoNeedRts (WifiRemoteStation *station,
74
                          Ptr<const Packet> packet, bool normally);
74
                          Ptr<const Packet> packet, bool normally);
75
  virtual bool IsLowLatency (void) const;
75
  virtual bool IsLowLatency (void) const;
76
  virtual bool IsHtSupported (void) const;
77
  virtual bool IsVhtSupported (void) const;
76
78
77
  /**
79
  /**
78
   * Check if the use of RTS for the given station can be turned off.
80
   * Check if the use of RTS for the given station can be turned off.
(-)a/src/wifi/model/amrr-wifi-manager.cc (+14 lines)
 Lines 375-378   AmrrWifiManager::IsLowLatency (void) const Link Here 
375
  return true;
375
  return true;
376
}
376
}
377
377
378
bool
379
AmrrWifiManager::IsHtSupported (void) const
380
{
381
  NS_LOG_FUNCTION (this);
382
  return false;
383
}
384
385
bool
386
AmrrWifiManager::IsVhtSupported (void) const
387
{
388
  NS_LOG_FUNCTION (this);
389
  return false;
390
}
391
378
} //namespace ns3
392
} //namespace ns3
(-)a/src/wifi/model/amrr-wifi-manager.h (+2 lines)
 Lines 61-66   private: Link Here 
61
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
61
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
62
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
62
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
63
  virtual bool IsLowLatency (void) const;
63
  virtual bool IsLowLatency (void) const;
64
  virtual bool IsHtSupported (void) const;
65
  virtual bool IsVhtSupported (void) const;
64
66
65
  //void UpdateRetry (AmrrWifiRemoteStation *station);
67
  //void UpdateRetry (AmrrWifiRemoteStation *station);
66
  /**
68
  /**
(-)a/src/wifi/model/aparf-wifi-manager.cc (+14 lines)
 Lines 364-367   AparfWifiManager::IsLowLatency (void) const Link Here 
364
  return true;
364
  return true;
365
}
365
}
366
366
367
bool
368
AparfWifiManager::IsHtSupported (void) const
369
{
370
  NS_LOG_FUNCTION (this);
371
  return false;
372
}
373
374
bool
375
AparfWifiManager::IsVhtSupported (void) const
376
{
377
  NS_LOG_FUNCTION (this);
378
  return false;
379
}
380
367
} //namespace ns3
381
} //namespace ns3
(-)a/src/wifi/model/aparf-wifi-manager.h (+2 lines)
 Lines 78-83   private: Link Here 
78
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
78
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
79
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
79
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
80
  virtual bool IsLowLatency (void) const;
80
  virtual bool IsLowLatency (void) const;
81
  virtual bool IsHtSupported (void) const;
82
  virtual bool IsVhtSupported (void) const;
81
83
82
  /** Check for initializations.
84
  /** Check for initializations.
83
   *
85
   *
(-)a/src/wifi/model/arf-wifi-manager.cc (+14 lines)
 Lines 249-252   ArfWifiManager::IsLowLatency (void) const Link Here 
249
  return true;
249
  return true;
250
}
250
}
251
251
252
bool
253
ArfWifiManager::IsHtSupported (void) const
254
{
255
  NS_LOG_FUNCTION (this);
256
  return false;
257
}
258
259
bool
260
ArfWifiManager::IsVhtSupported (void) const
261
{
262
  NS_LOG_FUNCTION (this);
263
  return false;
264
}
265
252
} //namespace ns3
266
} //namespace ns3
(-)a/src/wifi/model/arf-wifi-manager.h (+2 lines)
 Lines 64-69   private: Link Here 
64
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
64
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
65
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
65
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
66
  virtual bool IsLowLatency (void) const;
66
  virtual bool IsLowLatency (void) const;
67
  virtual bool IsHtSupported (void) const;
68
  virtual bool IsVhtSupported (void) const;
67
69
68
  uint32_t m_timerThreshold;
70
  uint32_t m_timerThreshold;
69
  uint32_t m_successThreshold;
71
  uint32_t m_successThreshold;
(-)a/src/wifi/model/cara-wifi-manager.cc (+14 lines)
 Lines 232-235   CaraWifiManager::IsLowLatency (void) const Link Here 
232
  return true;
232
  return true;
233
}
233
}
234
234
235
bool
236
CaraWifiManager::IsHtSupported (void) const
237
{
238
  NS_LOG_FUNCTION (this);
239
  return false;
240
}
241
242
bool
243
CaraWifiManager::IsVhtSupported (void) const
244
{
245
  NS_LOG_FUNCTION (this);
246
  return false;
247
}
248
235
} //namespace ns3
249
} //namespace ns3
(-)a/src/wifi/model/cara-wifi-manager.h (+2 lines)
 Lines 62-67   private: Link Here 
62
  virtual bool DoNeedRts (WifiRemoteStation *station,
62
  virtual bool DoNeedRts (WifiRemoteStation *station,
63
                          Ptr<const Packet> packet, bool normally);
63
                          Ptr<const Packet> packet, bool normally);
64
  virtual bool IsLowLatency (void) const;
64
  virtual bool IsLowLatency (void) const;
65
  virtual bool IsHtSupported (void) const;
66
  virtual bool IsVhtSupported (void) const;
65
67
66
  uint32_t m_timerTimeout;
68
  uint32_t m_timerTimeout;
67
  uint32_t m_successThreshold;
69
  uint32_t m_successThreshold;
(-)a/src/wifi/model/constant-rate-wifi-manager.cc (+14 lines)
 Lines 134-137   ConstantRateWifiManager::IsLowLatency (void) const Link Here 
134
  return true;
134
  return true;
135
}
135
}
136
136
137
bool
138
ConstantRateWifiManager::IsHtSupported (void) const
139
{
140
  NS_LOG_FUNCTION (this);
141
  return true;
142
}
143
144
bool
145
ConstantRateWifiManager::IsVhtSupported (void) const
146
{
147
  NS_LOG_FUNCTION (this);
148
  return true;
149
}
150
137
} //namespace ns3
151
} //namespace ns3
(-)a/src/wifi/model/constant-rate-wifi-manager.h (+2 lines)
 Lines 57-62   private: Link Here 
57
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
57
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
58
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
58
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
59
  virtual bool IsLowLatency (void) const;
59
  virtual bool IsLowLatency (void) const;
60
  virtual bool IsHtSupported (void) const;
61
  virtual bool IsVhtSupported (void) const;
60
62
61
  WifiMode m_dataMode; //!< Wifi mode for unicast DATA frames
63
  WifiMode m_dataMode; //!< Wifi mode for unicast DATA frames
62
  WifiMode m_ctlMode;  //!< Wifi mode for RTS frames
64
  WifiMode m_ctlMode;  //!< Wifi mode for RTS frames
(-)a/src/wifi/model/ideal-wifi-manager.cc (+14 lines)
 Lines 411-414   IdealWifiManager::IsLowLatency (void) const Link Here 
411
  return true;
411
  return true;
412
}
412
}
413
413
414
bool
415
IdealWifiManager::IsHtSupported (void) const
416
{
417
  NS_LOG_FUNCTION (this);
418
  return true;
419
}
420
421
bool
422
IdealWifiManager::IsVhtSupported (void) const
423
{
424
  NS_LOG_FUNCTION (this);
425
  return true;
426
}
427
414
} //namespace ns3
428
} //namespace ns3
(-)a/src/wifi/model/ideal-wifi-manager.h (+2 lines)
 Lines 72-77   private: Link Here 
72
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
72
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
73
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
73
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
74
  virtual bool IsLowLatency (void) const;
74
  virtual bool IsLowLatency (void) const;
75
  virtual bool IsHtSupported (void) const;
76
  virtual bool IsVhtSupported (void) const;
75
77
76
  /**
78
  /**
77
   * Return the minimum SNR needed to successfully transmit
79
   * Return the minimum SNR needed to successfully transmit
(-)a/src/wifi/model/minstrel-ht-wifi-manager.cc (+14 lines)
 Lines 1080-1085   MinstrelHtWifiManager::IsLowLatency (void) const Link Here 
1080
  return true;
1080
  return true;
1081
}
1081
}
1082
1082
1083
bool
1084
MinstrelHtWifiManager::IsHtSupported (void) const
1085
{
1086
  NS_LOG_FUNCTION (this);
1087
  return true;
1088
}
1089
1090
bool
1091
MinstrelHtWifiManager::IsVhtSupported (void) const
1092
{
1093
  NS_LOG_FUNCTION (this);
1094
  return true;
1095
}
1096
1083
uint32_t
1097
uint32_t
1084
MinstrelHtWifiManager::GetNextSample (MinstrelHtWifiRemoteStation *station)
1098
MinstrelHtWifiManager::GetNextSample (MinstrelHtWifiRemoteStation *station)
1085
{
1099
{
(-)a/src/wifi/model/minstrel-ht-wifi-manager.h (+2 lines)
 Lines 252-257   private: Link Here 
252
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
252
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
253
  virtual void DoReportAmpduTxStatus (WifiRemoteStation *station, uint32_t nSuccessfulMpdus, uint32_t nFailedMpdus, double rxSnr, double dataSnr);
253
  virtual void DoReportAmpduTxStatus (WifiRemoteStation *station, uint32_t nSuccessfulMpdus, uint32_t nFailedMpdus, double rxSnr, double dataSnr);
254
  virtual bool IsLowLatency (void) const;
254
  virtual bool IsLowLatency (void) const;
255
  virtual bool IsHtSupported (void) const;
256
  virtual bool IsVhtSupported (void) const;
255
  virtual bool DoNeedDataRetransmission (WifiRemoteStation *st, Ptr<const Packet> packet, bool normally);
257
  virtual bool DoNeedDataRetransmission (WifiRemoteStation *st, Ptr<const Packet> packet, bool normally);
256
  virtual void DoDisposeStation (WifiRemoteStation *station);
258
  virtual void DoDisposeStation (WifiRemoteStation *station);
257
259
(-)a/src/wifi/model/minstrel-wifi-manager.cc (+14 lines)
 Lines 866-871   MinstrelWifiManager::IsLowLatency (void) const Link Here 
866
  return true;
866
  return true;
867
}
867
}
868
868
869
bool
870
MinstrelWifiManager::IsHtSupported (void) const
871
{
872
  NS_LOG_FUNCTION (this);
873
  return false;
874
}
875
876
bool
877
MinstrelWifiManager::IsVhtSupported (void) const
878
{
879
  NS_LOG_FUNCTION (this);
880
  return false;
881
}
882
869
uint32_t
883
uint32_t
870
MinstrelWifiManager::GetNextSample (MinstrelWifiRemoteStation *station)
884
MinstrelWifiManager::GetNextSample (MinstrelWifiRemoteStation *station)
871
{
885
{
(-)a/src/wifi/model/minstrel-wifi-manager.h (+2 lines)
 Lines 216-221   private: Link Here 
216
  virtual bool DoNeedDataRetransmission (WifiRemoteStation *st, Ptr<const Packet> packet, bool normally);
216
  virtual bool DoNeedDataRetransmission (WifiRemoteStation *st, Ptr<const Packet> packet, bool normally);
217
217
218
  virtual bool IsLowLatency (void) const;
218
  virtual bool IsLowLatency (void) const;
219
  virtual bool IsHtSupported (void) const;
220
  virtual bool IsVhtSupported (void) const;
219
221
220
  //for estimating the TxTime of a packet with a given mode
222
  //for estimating the TxTime of a packet with a given mode
221
  Time GetCalcTxTime (WifiMode mode) const;
223
  Time GetCalcTxTime (WifiMode mode) const;
(-)a/src/wifi/model/onoe-wifi-manager.cc (+14 lines)
 Lines 315-318   OnoeWifiManager::IsLowLatency (void) const Link Here 
315
  return false;
315
  return false;
316
}
316
}
317
317
318
bool
319
OnoeWifiManager::IsHtSupported (void) const
320
{
321
  NS_LOG_FUNCTION (this);
322
  return false;
323
}
324
325
bool
326
OnoeWifiManager::IsVhtSupported (void) const
327
{
328
  NS_LOG_FUNCTION (this);
329
  return false;
330
}
331
318
} //namespace ns3
332
} //namespace ns3
(-)a/src/wifi/model/onoe-wifi-manager.h (+2 lines)
 Lines 63-68   private: Link Here 
63
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
63
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
64
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
64
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
65
  virtual bool IsLowLatency (void) const;
65
  virtual bool IsLowLatency (void) const;
66
  virtual bool IsHtSupported (void) const;
67
  virtual bool IsVhtSupported (void) const;
66
68
67
  /**
69
  /**
68
   * Update the number of retry (both short and long).
70
   * Update the number of retry (both short and long).
(-)a/src/wifi/model/parf-wifi-manager.cc (+14 lines)
 Lines 336-339   ParfWifiManager::IsLowLatency (void) const Link Here 
336
  return true;
336
  return true;
337
}
337
}
338
338
339
bool
340
ParfWifiManager::IsHtSupported (void) const
341
{
342
  NS_LOG_FUNCTION (this);
343
  return false;
344
}
345
346
bool
347
ParfWifiManager::IsVhtSupported (void) const
348
{
349
  NS_LOG_FUNCTION (this);
350
  return false;
351
}
352
339
} //namespace ns3
353
} //namespace ns3
(-)a/src/wifi/model/parf-wifi-manager.h (+2 lines)
 Lines 67-72   private: Link Here 
67
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
67
  virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station);
68
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
68
  virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
69
  virtual bool IsLowLatency (void) const;
69
  virtual bool IsLowLatency (void) const;
70
  virtual bool IsHtSupported (void) const;
71
  virtual bool IsVhtSupported (void) const;
70
72
71
  /** Check for initializations.
73
  /** Check for initializations.
72
   *
74
   *
(-)a/src/wifi/model/rraa-wifi-manager.cc (+14 lines)
 Lines 496-499   RraaWifiManager::IsLowLatency (void) const Link Here 
496
  return true;
496
  return true;
497
}
497
}
498
498
499
bool
500
RraaWifiManager::IsHtSupported (void) const
501
{
502
  NS_LOG_FUNCTION (this);
503
  return false;
504
}
505
506
bool
507
RraaWifiManager::IsVhtSupported (void) const
508
{
509
  NS_LOG_FUNCTION (this);
510
  return false;
511
}
512
499
} //namespace ns3
513
} //namespace ns3
(-)a/src/wifi/model/rraa-wifi-manager.h (+2 lines)
 Lines 72-77   private: Link Here 
72
  virtual bool DoNeedRts (WifiRemoteStation *st,
72
  virtual bool DoNeedRts (WifiRemoteStation *st,
73
                          Ptr<const Packet> packet, bool normally);
73
                          Ptr<const Packet> packet, bool normally);
74
  virtual bool IsLowLatency (void) const;
74
  virtual bool IsLowLatency (void) const;
75
  virtual bool IsHtSupported (void) const;
76
  virtual bool IsVhtSupported (void) const;
75
77
76
  /**
78
  /**
77
   * Return the index for the maximum transmission rate for
79
   * Return the index for the maximum transmission rate for
(-)a/src/wifi/model/wifi-remote-station-manager.cc (+8 lines)
 Lines 414-419   WifiRemoteStationManager::SetupMac (Ptr<WifiMac> mac) Link Here 
414
void
414
void
415
WifiRemoteStationManager::SetHtSupported (bool enable)
415
WifiRemoteStationManager::SetHtSupported (bool enable)
416
{
416
{
417
  if (enable && !IsHtSupported())
418
    {
419
      NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support HT rates");
420
    }
417
  m_htSupported = enable;
421
  m_htSupported = enable;
418
}
422
}
419
423
 Lines 486-491   WifiRemoteStationManager::HasHtSupported (void) const Link Here 
486
void
490
void
487
WifiRemoteStationManager::SetVhtSupported (bool enable)
491
WifiRemoteStationManager::SetVhtSupported (bool enable)
488
{
492
{
493
  if (enable && !IsVhtSupported())
494
    {
495
      NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support VHT rates");
496
    }
489
  m_vhtSupported = enable;
497
  m_vhtSupported = enable;
490
}
498
}
491
499
(-)a/src/wifi/model/wifi-remote-station-manager.h (+8 lines)
 Lines 978-983   private: Link Here 
978
   */
978
   */
979
  virtual bool IsLowLatency (void) const = 0;
979
  virtual bool IsLowLatency (void) const = 0;
980
  /**
980
  /**
981
   * \return whether this manager is a manager designed to work with HTstandards.
982
   */
983
  virtual bool IsHtSupported (void) const = 0;
984
  /**
985
   * \return whether this manager is a manager designed to work with VHT standards.
986
   */
987
  virtual bool IsVhtSupported (void) const = 0;
988
  /**
981
   * \return a new station data structure
989
   * \return a new station data structure
982
   */
990
   */
983
  virtual WifiRemoteStation* DoCreateStation (void) const = 0;
991
  virtual WifiRemoteStation* DoCreateStation (void) const = 0;

Return to bug 1797