Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Simplify isWifiOn on Kobo #5211
Yeah, I vaguely checked other patforms:
Kindle: lipc via dbus (though the stock lipc lua bindings) or fork(), meh :/
Yep, on cervantes we report isWifiOn as true based on 2nd layer according to IEEE 802.11 wireless LAN protocol.
This way wifi is on even on networks where we cannot ping remote locations but can still access to LAN services.
The reason we don't care about modules is that having them loaded doesn't mean that the interface is associated with an AP. For instance isWifiOn will return false if the interface is up but wpa_supplicant failed to associate.