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

(-)a/src/wifi/model/wifi-phy.cc (-1 / +32 lines)
 Lines 180-192    Link Here 
180
                   DoubleValue (-96.0),
180
                   DoubleValue (-96.0),
181
                   MakeDoubleAccessor (&WifiPhy::SetEdThreshold,
181
                   MakeDoubleAccessor (&WifiPhy::SetEdThreshold,
182
                                       &WifiPhy::GetEdThreshold),
182
                                       &WifiPhy::GetEdThreshold),
183
                   MakeDoubleChecker<double> ())
183
                   MakeDoubleChecker<double> (),
184
                   TypeId::DEPRECATED,
185
                   "Not used anymore.")
184
    .AddAttribute ("CcaMode1Threshold",
186
    .AddAttribute ("CcaMode1Threshold",
185
                   "The energy of a received signal should be higher than "
187
                   "The energy of a received signal should be higher than "
186
                   "this threshold (dbm) to allow the PHY layer to declare CCA BUSY state.",
188
                   "this threshold (dbm) to allow the PHY layer to declare CCA BUSY state.",
187
                   DoubleValue (-99.0),
189
                   DoubleValue (-99.0),
188
                   MakeDoubleAccessor (&WifiPhy::SetCcaMode1Threshold,
190
                   MakeDoubleAccessor (&WifiPhy::SetCcaMode1Threshold,
189
                                       &WifiPhy::GetCcaMode1Threshold),
191
                                       &WifiPhy::GetCcaMode1Threshold),
192
                   MakeDoubleChecker<double> (),
193
                   TypeId::DEPRECATED,
194
                   "Not used anymore.")
195
    .AddAttribute ("CcaEdThreshold",
196
                   "CCA-ED (energy detection) threshold (dBm); received signals above this "
197
                   "threshold shall cause CCA to detect medium busy."
198
                   DoubleValue (-62.0),
199
                   MakeDoubleAccessor (&WifiPhy::SetCcaEdThreshold,
200
                                       &WifiPhy::GetCcaEdThreshold),
201
                   MakeDoubleChecker<double> ())
202
    .AddAttribute ("CcaCsThreshold",
203
                   "CCA-CS (carrier sense) threshold (dBm); the minimum modulation and coding "
204
                   "rate sensitivity to cause CCA to detect medium busy."
205
                   DoubleValue (-82.0),
206
                   MakeDoubleAccessor (&WifiPhy::SetCcaCsThreshold,
207
                                       &WifiPhy::GetCcaCsThreshold),
208
                   MakeDoubleChecker<double> ())
209
    .AddAttribute ("SensitivityThreshold",
210
                   "The receiver will discard any signal that falls below this threshold (dBm)."
211
                   DoubleValue (-110.0),
212
                   MakeDoubleAccessor (&WifiPhy::SetSensitivityThreshold,
213
                                       &WifiPhy::GetSensitivityThreshold),
214
                   MakeDoubleChecker<double> ())
215
    .AddAttribute ("RxSopThreshold",
216
                   "Receiver Start Of Packet Threshold (dBm). Signal threshold above which the "
217
                   "receiver will try to decode a frame."
218
                   DoubleValue (-110.0),
219
                   MakeDoubleAccessor (&WifiPhy::SetRxSopThreshold,
220
                                       &WifiPhy::GetRxSopThreshold),
190
                   MakeDoubleChecker<double> ())
221
                   MakeDoubleChecker<double> ())
191
    .AddAttribute ("TxGain",
222
    .AddAttribute ("TxGain",
192
                   "Transmission gain (dB).",
223
                   "Transmission gain (dB).",

Return to bug 2460