Skip to content

Instantly share code, notes, and snippets.

@kmanna
Created February 1, 2013 03:49
Show Gist options
  • Save kmanna/4689045 to your computer and use it in GitHub Desktop.
Save kmanna/4689045 to your computer and use it in GitHub Desktop.
#!/bin/sh
let i=0
killall wpa_supplicant
wpa_supplicant -c /etc/wifi/wpa_supplicant.conf -i wlan0
while true;
do
echo $i;
i=$(($i+1))
wpa_cli -p /data/misc/wifi/sockets scan
usleep 750000
wpa_cli -p /data/misc/wifi/sockets scan_result
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment