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

(-)a/src/devices/wifi/wifi-remote-station-manager.cc (-1 / +13 lines)
 Lines 97-103   NonUnicastWifiRemoteStation::DoReportFin Link Here 
97
WifiMode 
97
WifiMode 
98
NonUnicastWifiRemoteStation::DoGetDataMode (uint32_t size)
98
NonUnicastWifiRemoteStation::DoGetDataMode (uint32_t size)
99
{
99
{
100
  WifiMode mode = m_stations->GetBasicMode (0);
100
  WifiMode mode = m_stations->GetNonUnicastMode ();
101
  NS_LOG_DEBUG ("non-unicast size="<<size<<", mode="<<mode);
101
  NS_LOG_DEBUG ("non-unicast size="<<size<<", mode="<<mode);
102
  return mode;
102
  return mode;
103
}
103
}
 Lines 155-160   WifiRemoteStationManager::GetTypeId (voi Link Here 
155
                   UintegerValue (1500),
155
                   UintegerValue (1500),
156
                   MakeUintegerAccessor (&WifiRemoteStationManager::m_fragmentationThreshold),
156
                   MakeUintegerAccessor (&WifiRemoteStationManager::m_fragmentationThreshold),
157
                   MakeUintegerChecker<uint32_t> ())
157
                   MakeUintegerChecker<uint32_t> ())
158
    .AddAttribute ("NonUnicastMode", "Wifi mode used for non-unicast transmissions.",
159
                   WifiModeValue (),
160
                   MakeWifiModeAccessor (&WifiRemoteStationManager::m_nonUnicastMode),
161
                   MakeWifiModeChecker ())
158
    ;
162
    ;
159
  return tid;
163
  return tid;
160
}
164
}
 Lines 305-310   WifiRemoteStationManager::IsLowLatency ( Link Here 
305
{
309
{
306
  return m_isLowLatency;
310
  return m_isLowLatency;
307
}
311
}
312
WifiMode
313
WifiRemoteStationManager::GetNonUnicastMode (void) const
314
{
315
  if (m_nonUnicastMode == WifiMode ())
316
    return GetBasicMode(0);
317
  else
318
    return m_nonUnicastMode;
319
}
308
320
309
} // namespace ns3
321
} // namespace ns3
310
322
(-)a/src/devices/wifi/wifi-remote-station-manager.h (+3 lines)
 Lines 80-85   public: Link Here 
80
80
81
  bool IsLowLatency (void) const;
81
  bool IsLowLatency (void) const;
82
82
83
  WifiMode GetNonUnicastMode (void) const;
84
83
  WifiRemoteStation *Lookup (Mac48Address address);
85
  WifiRemoteStation *Lookup (Mac48Address address);
84
  WifiRemoteStation *LookupNonUnicast (void);
86
  WifiRemoteStation *LookupNonUnicast (void);
85
protected:
87
protected:
 Lines 97-102   private: Link Here 
97
  uint32_t m_maxSlrc;
99
  uint32_t m_maxSlrc;
98
  uint32_t m_rtsCtsThreshold;
100
  uint32_t m_rtsCtsThreshold;
99
  uint32_t m_fragmentationThreshold;
101
  uint32_t m_fragmentationThreshold;
102
  WifiMode m_nonUnicastMode;
100
};
103
};
101
104
102
} // namespace ns3
105
} // namespace ns3

Return to bug 531