Hello:
I try to setting of
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=11, ht_cap='HT40+', **kwargs)
channel = 1(or 6) it will show like:
Traceback (most recent call last):
File "/home/tang/sdn_manet_exp/topo.py", line 71, in <module>
topology(sys.argv)
File "/home/tang/sdn_manet_exp/topo.py", line 49, in topology
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=11, ht_cap='HT40+', **kwargs)
File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/net.py", line 658, in addLink
link = cls(node=node1, **params)
File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/link.py", line 1818, in __init__
self.configureAdhoc()
File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/link.py", line 1837, in configureAdhoc
self.join_ibss(self.ssid, self.format_freq(),
File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/link.py", line 233, in format_freq
return int(format(self.freq, '.3f').replace('.', ''))
TypeError: unsupported format string passed to NoneType.__format__
and if I setting the
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=44, ht_cap='HT40+', **kwargs)
which the channel = 44
the topo is totally same but all node couldn't connect and ping.
And I try to find out how to check the 802.11 type(eg. g, n, ac..) using in each node, but I don't know how to check it.