|
|
| 160 |
NS_LOG_FUNCTION (this << packet << to); |
160 |
NS_LOG_FUNCTION (this << packet << to); |
| 161 |
if (m_stationManager->IsBrandNew (to)) |
161 |
if (m_stationManager->IsBrandNew (to)) |
| 162 |
{ |
162 |
{ |
| 163 |
// In ocb mode, we assume that every destination supports all |
163 |
//In ad hoc mode, we assume that every destination supports all |
| 164 |
// the rates we support. |
164 |
//the rates we support. |
|
|
165 |
if (m_htSupported || m_vhtSupported) |
| 166 |
{ |
| 167 |
m_stationManager->AddAllSupportedMcs (to); |
| 168 |
m_stationManager->AddStationHtCapabilities (to, GetHtCapabilities()); |
| 169 |
} |
| 170 |
if (m_vhtSupported) |
| 171 |
{ |
| 172 |
m_stationManager->AddStationVhtCapabilities (to, GetVhtCapabilities()); |
| 173 |
} |
| 165 |
m_stationManager->AddAllSupportedModes (to); |
174 |
m_stationManager->AddAllSupportedModes (to); |
| 166 |
m_stationManager->RecordDisassociated (to); |
175 |
m_stationManager->RecordDisassociated (to); |
| 167 |
} |
176 |
} |
|
|
| 237 |
Mac48Address from = hdr->GetAddr2 (); |
246 |
Mac48Address from = hdr->GetAddr2 (); |
| 238 |
Mac48Address to = hdr->GetAddr1 (); |
247 |
Mac48Address to = hdr->GetAddr1 (); |
| 239 |
|
248 |
|
|
|
249 |
if (m_stationManager->IsBrandNew (from)) |
| 250 |
{ |
| 251 |
//In ad hoc mode, we assume that every destination supports all |
| 252 |
//the rates we support. |
| 253 |
if (m_htSupported || m_vhtSupported) |
| 254 |
{ |
| 255 |
m_stationManager->AddAllSupportedMcs (from); |
| 256 |
m_stationManager->AddStationHtCapabilities (from, GetHtCapabilities()); |
| 257 |
} |
| 258 |
if (m_vhtSupported) |
| 259 |
{ |
| 260 |
m_stationManager->AddStationVhtCapabilities (from, GetVhtCapabilities()); |
| 261 |
} |
| 262 |
m_stationManager->AddAllSupportedModes (from); |
| 263 |
m_stationManager->RecordDisassociated (from); |
| 264 |
} |
| 265 |
|
| 240 |
if (hdr->IsData ()) |
266 |
if (hdr->IsData ()) |
| 241 |
{ |
267 |
{ |
| 242 |
if (hdr->IsQosData () && hdr->IsQosAmsdu ()) |
268 |
if (hdr->IsQosData () && hdr->IsQosAmsdu ()) |