intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
446 stars 241 forks source link

Fix TCLinkWireless class #457

Closed Tasdingo17 closed 1 year ago

Tasdingo17 commented 1 year ago

Error in class TCLinkWireless: provided "cls" argument "TCLinkWireless" causes looping and error.

Topology creation with Mininet_wifi(topo=topo, cls=TCLinkWireless) ends with error:

TypeError: mn_wifi.link.WirelessLink() got multiple values for keyword argument 'name'

Creation example: topo-1ap-2sta.txt

Problem: during init WirelessIntf does intf1 = cls(name=intfName, node=node, link=self, mac=addr, **params) and if it WirelessIntf was called from TCLinkWireless with cls = TCLinkWireless it causes looping