Exception in thread WiifiParameter

105 views
Skip to first unread message

Irfan Ahmad

unread,
Jun 5, 2022, 11:23:29 AM6/5/22
to mininet-wifi-discuss
Hello guys, hope you all are well.
I have written a script that creates access points and stations and then add links.
Everything works fine until the start of CLI.
While starting the CLI it gives the "Exception in thread WifiParameter". This error appears while the network graph is being drawn. As the exception title indicates I think its some thread related issue. But, I can't pick the exact origin and solution of the issue.
I've attached the script, the error and its screenshot, and a video of the error.
I did go answers but nothing found relevant to my problem.

Kindly have a look and guide me.

Thanks in advance

The Error:
adding nodes
stations
access points
controller
*** Configuring propagation model
configuring nodes
*** STA1-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** STA2-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** STA3-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** TCPS-wlan0: signal range of 30m requires tx power equals to 14dBm.
*** AP1-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** AP2-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** AP3-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** AP4-wlan1: signal range of 25m requires tx power equals to 10dBm.
*** Connecting to wmediumd server /var/run/wmediumd.sock
linking
(1ms delay 1.00000% loss) (1ms delay 1.00000% loss) (5ms delay 1.00000% loss) (5ms delay 1.00000% loss) (4ms delay 5.00000% loss) (4ms delay 5.00000% loss) plotting
adding mobility
creating network
starting controller
starting nodes
*** Starting CLI:
mininet-wifi> Exception in thread wifiParameters:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 171, in parameters
    self.config_links(mob_nodes)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 199, in config_links
    self.set_handover(intf, aps)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 148, in set_handover
    self.ap_in_range(intf, ap, dist)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 113, in ap_in_range
    rssi = intf.get_rssi(ap_intf, dist)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/link.py", line 224, in get_rssi
    return float(ppm(self, ap_intf, dist).rssi)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/propagationModels.py", line 32, in __init__
    self.__getattribute__(self.model)(intf, apintf, dist)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/propagationModels.py", line 113, in logDistance
    pl = self.path_loss(intf, ref_d)
  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/propagationModels.py", line 47, in path_loss
    f = intf.freq * 10 ** 9  # Convert Ghz to Hz
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

This error appears while the graph is still under mobility drawing.error.png
Task1.py
error.m4v

Ramon Fontes

unread,
Jun 5, 2022, 11:53:36 AM6/5/22
to Irfan Ahmad, mininet-wifi-discuss
Channel 5 for 5GHz?

Sent from my android

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/c6753ea8-64ec-485e-bca1-7e5396ed9ca8n%40googlegroups.com.

Irfan Ahmad

unread,
Jun 5, 2022, 12:28:38 PM6/5/22
to mininet-wifi-discuss
So, is this the reason to the issue?

I just wrote according to the task requirement. I'm newbie to networking so can't understand the relationship of channel 5 for 5GHz.
Should i change the channel?
some explanation please.

and yep, thanks

Irfan Ahmad

unread,
Jun 6, 2022, 11:10:50 AM6/6/22
to mininet-wifi-discuss
a bit of more direction here, please

Ramon Fontes

unread,
Jun 6, 2022, 11:16:16 AM6/6/22
to Irfan Ahmad, mininet-wifi-discuss
Sorry, which direction do you mean? Do you want to understand why 5GHz doesn't support channel 5?? This is something this list was not created for.

Irfan Ahmad

unread,
Jun 6, 2022, 12:39:42 PM6/6/22
to mininet-wifi-discuss
i just wanted to clear that I picked you right i.e 5GHz doesn't support channel 5.
Reply all
Reply to author
Forward
0 new messages