androidandroid-wifiandroid-wireless

getRssi method in wifi info class


In class wifi info the getRssi() method

getRssi()
   {
     Return RSSI; 
   }

From where they get it? and from where they measure it? I know RSSI is the signal strength between the access point and the device, but i want to understand how they measure it here!


Solution

  • The data is calculated and set in WifiStateMachine's fetchRssiAndLinkSpeedNative().
    Compilers often have a "Find implementation" or "Find usages" feature which will lead you to the source in many cases. (I used this feature on grepcode.com to find the method above.)