I want to pragmatically check wireless link quality (in C code and in bash script). Using iwconfig tool I get current value represented as fraction e.g 47/100. The problem is that, denominators are different for many wifi cards (on my laptop this denominator equals to 100 and on embedded device IGEP Module I'm working on this denominator equals to 70).
I know that I can check current signal quality in /proc/net/wireless, bu I don't know where to check denominator value. Can you help me?