I am currently developing a sort of wifi sniffer. To achieve that I use a tcpdump binary compiled for arm. But it\'s assume that I know the name of the Wifi Interface.
All you have to do is change
Log.e("MyTemp",netInterface.getName());
to
Log.e("MyTemp",netInterface.getDisplayName());