modem.lua: Add link quality measurement.