intrig-unicamp / mininet-wifi

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

Patch to automatically update txpower to what it is calculated as for the given range. #524

Closed ZekeLewis closed 1 week ago

ZekeLewis commented 4 months ago

When a Station is initialized when accessing its txpower variable, previously a default value would always be returned. Now txpower is automatically updated when calling the GetTxPowerGivenRange function from IntfWireless in link.py. I also added txpower as a float in the logging message rather than an int. Thanks

ramonfontes commented 4 months ago

I think this PR includes changes to files not related to the PR itself.

ZekeLewis commented 4 months ago

Okay, I believe I only have the relevant changes now.