Exploiting wireless communication to gain situational awareness in indoor environments