Creating Links¶
Mesh Link¶
A mesh link with IEEE 802.11s can be created with the method below:
net.addLink(sta1, cls=mesh, intf='sta1-wlan0', ssid='meshNet', channel=5)
The mthod above crates a mesh link from sta1-wlan0 through iw. Please refer to the iw documentation on how to add a new virtual interface for further information.
If you want to create multiple virtual mesh interfaces you can repeat the method call by adding vIface=True as follows.
net.addLink(sta1, cls=mesh, ssid='meshNet', vIface=True,
intf='sta1-wlan0', channel=5, ht_cap='HT40+')
Ad hoc Link¶
An adhoc link can be created with the method below:
net.addLink(sta1, cls=adhoc, intf='sta1-wlan0', ssid='adhochNet', channel=5)