'how to get device max link and firmware in ios/android?

I'm trying to write an ios/andriod app that can scan the wifi network the device is connected to and get some information about the router and bandwidth. I was wondering if anyone knows how to get the maximum link supported by the iOS or Android device programmatically using python? also how can I get the router firmware?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source