Take a look at Finally got 802.11v working (FULLY) - Few pointers and How does rrm work?.
They have explanations and code to get the client status information including reception quality. In some devices this is directly the 802.11 defined RCPI dBm figure, although other types of reporting can also be used.