linux - C - ioctl wlan operstate, link quality, and tx/rx status -
i borrowed this gentleman in order request signal strength of wireless connection on device. use ioctl operstate , whether or not there's up/down stream information flowing on connection.
basically, i'm attempting modernize of device, adding real-time status icons of link operability, quality, , activity. originally, using popen() cat , parse /proc/net/wireless , /sys/class/net/wlan0/operstate. issue fail (i assume because os had locked file) causing crashes.
so, questions two:
one, can use ioctl in way similar 1 described in link above monitor operstate , connection activity? information find pertaining ifreq, not iwreq.
two, occurred me while writing should have kernel telling application when status of wireless device changes, shouldn't i? can't imagine various desktops' system trays have polling loops in them.
actual two: there way have kernel feed information application operstate, link quality, , link activity in real-time?
thank in advance. =)
Comments
Post a Comment