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,2007 INRIA | 3 * Copyright (c) 2005,2006,2007 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 "ns3::Mac48Address::TracedCallback") | 395 "ns3::Mac48Address::TracedCallback") |
396 ; | 396 ; |
397 return tid; | 397 return tid; |
398 } | 398 } |
399 | 399 |
400 WifiRemoteStationManager::WifiRemoteStationManager () | 400 WifiRemoteStationManager::WifiRemoteStationManager () |
401 : m_qosSupported (false), | 401 : m_qosSupported (false), |
402 m_htSupported (false), | 402 m_htSupported (false), |
403 m_vhtSupported (false), | 403 m_vhtSupported (false), |
404 m_heSupported (false), | 404 m_heSupported (false), |
| 405 m_pcfSupported (false), |
405 m_useNonErpProtection (false), | 406 m_useNonErpProtection (false), |
406 m_useNonHtProtection (false), | 407 m_useNonHtProtection (false), |
407 m_useGreenfieldProtection (false), | 408 m_useGreenfieldProtection (false), |
408 m_shortPreambleEnabled (false), | 409 m_shortPreambleEnabled (false), |
409 m_shortSlotTimeEnabled (false), | 410 m_shortSlotTimeEnabled (false), |
410 m_rifsPermitted (false) | 411 m_rifsPermitted (false) |
411 { | 412 { |
412 NS_LOG_FUNCTION (this); | 413 NS_LOG_FUNCTION (this); |
413 } | 414 } |
414 | 415 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 { | 590 { |
590 m_heSupported = enable; | 591 m_heSupported = enable; |
591 } | 592 } |
592 | 593 |
593 bool | 594 bool |
594 WifiRemoteStationManager::HasHeSupported (void) const | 595 WifiRemoteStationManager::HasHeSupported (void) const |
595 { | 596 { |
596 return m_heSupported; | 597 return m_heSupported; |
597 } | 598 } |
598 | 599 |
| 600 void |
| 601 WifiRemoteStationManager::SetPcfSupported (bool enable) |
| 602 { |
| 603 m_pcfSupported = enable; |
| 604 } |
| 605 |
| 606 bool |
| 607 WifiRemoteStationManager::HasPcfSupported (void) const |
| 608 { |
| 609 return m_pcfSupported; |
| 610 } |
| 611 |
599 uint32_t | 612 uint32_t |
600 WifiRemoteStationManager::GetMaxSsrc (void) const | 613 WifiRemoteStationManager::GetMaxSsrc (void) const |
601 { | 614 { |
602 return m_maxSsrc; | 615 return m_maxSsrc; |
603 } | 616 } |
604 | 617 |
605 uint32_t | 618 uint32_t |
606 WifiRemoteStationManager::GetMaxSlrc (void) const | 619 WifiRemoteStationManager::GetMaxSlrc (void) const |
607 { | 620 { |
608 return m_maxSlrc; | 621 return m_maxSlrc; |
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 m_failAvg = (1 - coefficient) + coefficient * m_failAvg; | 2321 m_failAvg = (1 - coefficient) + coefficient * m_failAvg; |
2309 } | 2322 } |
2310 | 2323 |
2311 double | 2324 double |
2312 WifiRemoteStationInfo::GetFrameErrorRate () const | 2325 WifiRemoteStationInfo::GetFrameErrorRate () const |
2313 { | 2326 { |
2314 return m_failAvg; | 2327 return m_failAvg; |
2315 } | 2328 } |
2316 | 2329 |
2317 } //namespace ns3 | 2330 } //namespace ns3 |
OLD | NEW |