iwlib-example OS: Ubuntu 14:04 Env: make sure the "wlan0" device is up. $ apt-get install -y libiw-dev $ gcc -liw main.c $ sudo ./a.out