Hello,
Sure. In my script, I have the following two lines:
net.addLink( sta0, cls=adhoc, ssid='adhocNet', intf='sta0-wlan0', mode='g', channel=5 ) # mobile station
net.addLink( sta0, cls=mesh, ssid='meshNet', intf='sta0-wlan1', mode='g', channel=5 ) # mobile station
When I run the program with this, sta0 is able to ping nodes in the ad hoc network, but when I move it to the mesh, it cannot ping the nodes in the mesh network.
However, when I switch the two lines:
net.addLink( sta0, cls=mesh, ssid='meshNet', intf='sta0-wlan1', mode='g', channel=5 ) # mobile station
net.addLink( sta0, cls=adhoc, ssid='adhocNet', intf='sta0-wlan0', mode='g', channel=5 ) # mobile station
Now sta0 operates successfully in the mesh network but not the ad hoc network.
Is there a better way to add multiple interfaces so that sta0 can ping both networks? I am attaching the code as a text file if you would like to see it.
Thank you!