To perform a middle man attack in order to sniff passwords both computers have to be on LAN, not WLAN.