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

(-)a/src/wifi/model/aparf-wifi-manager.cc (-6 / +6 lines)
 Lines 62-73    Link Here 
62
    .SetParent<WifiRemoteStationManager> ()
62
    .SetParent<WifiRemoteStationManager> ()
63
    .SetGroupName ("Wifi")
63
    .SetGroupName ("Wifi")
64
    .AddConstructor<AparfWifiManager> ()
64
    .AddConstructor<AparfWifiManager> ()
65
    .AddAttribute ("SuccessThreshold 1",
65
    .AddAttribute ("SuccessThresholdHigh",
66
                   "The minimum number of successful transmissions in \"High\" state to try a new power or rate.",
66
                   "The minimum number of successful transmissions in \"High\" state to try a new power or rate.",
67
                   UintegerValue (3),
67
                   UintegerValue (3),
68
                   MakeUintegerAccessor (&AparfWifiManager::m_succesMax1),
68
                   MakeUintegerAccessor (&AparfWifiManager::m_succesMax1),
69
                   MakeUintegerChecker<uint32_t> ())
69
                   MakeUintegerChecker<uint32_t> ())
70
    .AddAttribute ("SuccessThreshold 2",
70
    .AddAttribute ("SuccessThresholdLow",
71
                   "The minimum number of successful transmissions in \"Low\" state to try a new power or rate.",
71
                   "The minimum number of successful transmissions in \"Low\" state to try a new power or rate.",
72
                   UintegerValue (10),
72
                   UintegerValue (10),
73
                   MakeUintegerAccessor (&AparfWifiManager::m_succesMax2),
73
                   MakeUintegerAccessor (&AparfWifiManager::m_succesMax2),
 Lines 82-103    Link Here 
82
                   UintegerValue (10),
82
                   UintegerValue (10),
83
                   MakeUintegerAccessor (&AparfWifiManager::m_powerMax),
83
                   MakeUintegerAccessor (&AparfWifiManager::m_powerMax),
84
                   MakeUintegerChecker<uint32_t> ())
84
                   MakeUintegerChecker<uint32_t> ())
85
    .AddAttribute ("Power decrement step",
85
    .AddAttribute ("PowerDecrementStep",
86
                   "Step size for decrement the power.",
86
                   "Step size for decrement the power.",
87
                   UintegerValue (1),
87
                   UintegerValue (1),
88
                   MakeUintegerAccessor (&AparfWifiManager::m_powerDec),
88
                   MakeUintegerAccessor (&AparfWifiManager::m_powerDec),
89
                   MakeUintegerChecker<uint32_t> ())
89
                   MakeUintegerChecker<uint32_t> ())
90
    .AddAttribute ("Power increment step",
90
    .AddAttribute ("PowerIncrementStep",
91
                   "Step size for increment the power.",
91
                   "Step size for increment the power.",
92
                   UintegerValue (1),
92
                   UintegerValue (1),
93
                   MakeUintegerAccessor (&AparfWifiManager::m_powerInc),
93
                   MakeUintegerAccessor (&AparfWifiManager::m_powerInc),
94
                   MakeUintegerChecker<uint32_t> ())
94
                   MakeUintegerChecker<uint32_t> ())
95
    .AddAttribute ("Rate decrement step",
95
    .AddAttribute ("RateDecrementStep",
96
                   "Step size for decrement the rate.",
96
                   "Step size for decrement the rate.",
97
                   UintegerValue (1),
97
                   UintegerValue (1),
98
                   MakeUintegerAccessor (&AparfWifiManager::m_rateDec),
98
                   MakeUintegerAccessor (&AparfWifiManager::m_rateDec),
99
                   MakeUintegerChecker<uint32_t> ())
99
                   MakeUintegerChecker<uint32_t> ())
100
    .AddAttribute ("Rate increment step",
100
    .AddAttribute ("RateIncrementStep",
101
                   "Step size for increment the rate.",
101
                   "Step size for increment the rate.",
102
                   UintegerValue (1),
102
                   UintegerValue (1),
103
                   MakeUintegerAccessor (&AparfWifiManager::m_rateInc),
103
                   MakeUintegerAccessor (&AparfWifiManager::m_rateInc),
(-)a/src/wifi/test/power-rate-adaptation-test.cc (-2 / +2 lines)
 Lines 348-355    Link Here 
348
  /*
348
  /*
349
   * Configure thresholds for rate and power control.
349
   * Configure thresholds for rate and power control.
350
   */
350
   */
351
  manager->SetAttribute ("SuccessThreshold 1",UintegerValue (3));
351
  manager->SetAttribute ("SuccessThresholdHigh",UintegerValue (3));
352
  manager->SetAttribute ("SuccessThreshold 2",UintegerValue (10));
352
  manager->SetAttribute ("SuccessThresholdLow",UintegerValue (10));
353
  manager->SetAttribute ("FailThreshold",UintegerValue (1));
353
  manager->SetAttribute ("FailThreshold",UintegerValue (1));
354
  manager->SetAttribute ("PowerThreshold",UintegerValue (10));
354
  manager->SetAttribute ("PowerThreshold",UintegerValue (10));
355
355

Return to bug 2344