Hi I want to check the internet connection status (internet is connected / not connected) and wifi interface is up/down.
This I have to do from the Application developed in C which is running inside OpenWRT.
I have used POPEN and SYSTEM functions for this purpose. But all these functions are not running inside infinite loop.
Gives segmentation fault or hangs after several iterations.
I prefer of uses any OpenWRT system call/function or flag or register etc., to avoid the above situation.
Can Anyone help me on this?