assert failed. cond="!address.IsGroup ()", file=../src/wifi/model/wifi-remote-station-manager.cc, line=1303

29 views
Skip to first unread message

tina

unread,
Nov 2, 2018, 10:45:36 AM11/2/18
to ns-3-users
Hi all,

I have a network in dce-ns3, in that, there is an access point connecting to three stations.  In code, 
when I am using StaWifiMac and ApWifiMac, I get the following error.
assert failed. cond="!address.IsGroup ()", file=../src/wifi/model/wifi-remote-station-manager.cc, line=1303

what could be the problem? Code part is below.

      WifiHelper wifi;
      wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue("HtMcs2"), "ControlMode", StringValue("HtMcs2"));
     wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ); 
     phy = YansWifiPhyHelper::Default ();
     YansWifiChannelHelper phyChannel = YansWifiChannelHelper::Default ();  
     phy.SetChannel (phyChannel.Create ());
      WifiMacHelper mac;    
      Ssid ssid = Ssid ("ns-3-ssid");
      mac.SetType ("ns3::StaWifiMac",
               "Ssid", SsidValue (ssid));     
      devices1 = wifi.Install (phy, mac, nodes.Get (1));
      
      if1 = address1.Assign (devices1);      
      
      mac.SetType ("ns3::ApWifiMac",
               "Ssid", SsidValue (ssid));
      routerDevice = wifi.Install (phy, mac, routers.Get (0));
      if1 = address1.Assign (routerDevice);
   
      
      //WiFi-R <-> C3
      mac.SetType ("ns3::StaWifiMac",
               "Ssid", SsidValue (ssid));   
      devicesC3 = wifi.Install (phy, mac, nodes.Get (3));
      ifC3 = address1.Assign (devicesC3);




Thanks in advance
Reply all
Reply to author
Forward
0 new messages