WMPS: A Positioning System for localizing legacy 802.11 devices