how to know the wifi direct commands which used in android?

view full story

http://stackoverflow.com – i interested to know what commands that used in Android ? i have a look to p2p WIFI direct but i didn't catch these commands!! i see these commands from this link that used in Linux. but do they used in android frame-ware ? and if yes how can i access them on rooted device ?? i see that iwconfig wireless packages doesn't supported on Android and see links show how to install it! (HowTos)