|
|
| 391 |
SpectrumWifiPhy::GetGuardBandwidth (uint8_t currentChannelWidth) const |
391 |
SpectrumWifiPhy::GetGuardBandwidth (uint8_t currentChannelWidth) const |
| 392 |
{ |
392 |
{ |
| 393 |
uint8_t guardBandwidth = 0; |
393 |
uint8_t guardBandwidth = 0; |
| 394 |
switch (GetStandard ()) |
394 |
if (currentChannelWidth == 22) |
| 395 |
{ |
395 |
{ |
| 396 |
case WIFI_PHY_STANDARD_80211b: |
396 |
//handle case of use of legacy DSSS transmission |
| 397 |
guardBandwidth = 10; |
397 |
guardBandwidth = 10; |
| 398 |
break; |
398 |
} |
| 399 |
case WIFI_PHY_STANDARD_80211a: |
399 |
else |
| 400 |
case WIFI_PHY_STANDARD_80211g: |
400 |
{ |
| 401 |
case WIFI_PHY_STANDARD_holland: |
401 |
//In order to properly model out of band transmissions for OFDM, the guard |
| 402 |
case WIFI_PHY_STANDARD_80211n_2_4GHZ: |
402 |
//band has been configured so as to expand the modeled spectrum up to the |
| 403 |
case WIFI_PHY_STANDARD_80211n_5GHZ: |
403 |
//outermost referenced point in "Transmit spectrum mask" sections' PSDs of |
| 404 |
case WIFI_PHY_STANDARD_80211ac: |
404 |
//each PHY specification of 802.11-2016 standard. It thus ultimately corresponds |
| 405 |
case WIFI_PHY_STANDARD_80211ax_2_4GHZ: |
405 |
//to the currently considered channel bandwidth (which can be different from |
| 406 |
case WIFI_PHY_STANDARD_80211ax_5GHZ: |
406 |
//supported channel width). |
| 407 |
case WIFI_PHY_STANDARD_80211_10MHZ: |
|
|
| 408 |
case WIFI_PHY_STANDARD_80211_5MHZ: |
| 409 |
// In order to properly model out of band transmissions for OFDM, the guard |
| 410 |
// band has been configured so as to expand the modeled spectrum up to the |
| 411 |
// outermost referenced point in "Transmit spectrum mask" sections' PSDs of |
| 412 |
// each PHY specification of 802.11-2016 standard. It thus ultimately corresponds |
| 413 |
// to the currently considered channel bandwidth (which can be different from |
| 414 |
// supported channel width). |
| 415 |
guardBandwidth = currentChannelWidth; |
407 |
guardBandwidth = currentChannelWidth; |
| 416 |
break; |
|
|
| 417 |
default: |
| 418 |
NS_FATAL_ERROR ("Standard unknown: " << GetStandard ()); |
| 419 |
break; |
| 420 |
} |
408 |
} |
| 421 |
return guardBandwidth; |
409 |
return guardBandwidth; |
| 422 |
} |
410 |
} |