Getting signal strength

Hi, I'm using TAPI's lineGetLineDevStatus to get the signal strength which is returned as a value between 0x0000 and 0xffff. Does anyone know if this value is linear, or how to convert it to a 5 bar representation?
Thanks.
Thanks.