|
|
| 1781 |
NS_LOG_FUNCTION (this << from << heCapabilities); |
1781 |
NS_LOG_FUNCTION (this << from << heCapabilities); |
| 1782 |
WifiRemoteStationState *state; |
1782 |
WifiRemoteStationState *state; |
| 1783 |
state = LookupState (from); |
1783 |
state = LookupState (from); |
| 1784 |
if (heCapabilities.GetChannelWidthSet () & 0x04 && Is5Ghz (m_wifiPhy->GetFrequency ())) |
1784 |
if (Is5Ghz (m_wifiPhy->GetFrequency ())) |
| 1785 |
{ |
|
|
| 1786 |
state->m_channelWidth = 160; |
| 1787 |
} |
| 1788 |
else if (heCapabilities.GetChannelWidthSet () & 0x02 && Is5Ghz (m_wifiPhy->GetFrequency ())) |
| 1789 |
{ |
1785 |
{ |
| 1790 |
state->m_channelWidth = 80; |
1786 |
if (heCapabilities.GetChannelWidthSet () & 0x04) |
|
|
1787 |
{ |
| 1788 |
state->m_channelWidth = 160; |
| 1789 |
} |
| 1790 |
else if (heCapabilities.GetChannelWidthSet () & 0x02) |
| 1791 |
{ |
| 1792 |
state->m_channelWidth = 80; |
| 1793 |
} |
| 1794 |
//For other cases at 5 GHz, the supported channel width is set by the VHT capabilities |
| 1791 |
} |
1795 |
} |
| 1792 |
else if ((heCapabilities.GetChannelWidthSet () & 0x01) && Is2_4Ghz (m_wifiPhy->GetFrequency ())) |
1796 |
else if (Is2_4Ghz (m_wifiPhy->GetFrequency ())) |
| 1793 |
{ |
1797 |
{ |
| 1794 |
state->m_channelWidth = 40; |
1798 |
if (heCapabilities.GetChannelWidthSet () & 0x01) |
| 1795 |
} |
1799 |
{ |
| 1796 |
else |
1800 |
state->m_channelWidth = 40; |
| 1797 |
{ |
1801 |
} |
| 1798 |
state->m_channelWidth = 20; |
1802 |
else |
|
|
1803 |
{ |
| 1804 |
state->m_channelWidth = 20; |
| 1805 |
} |
| 1799 |
} |
1806 |
} |
| 1800 |
if (heCapabilities.GetHeLtfAndGiForHePpdus () >= 2) |
1807 |
if (heCapabilities.GetHeLtfAndGiForHePpdus () >= 2) |
| 1801 |
{ |
1808 |
{ |