cleaned up wifipcap
updated wifipcap to remove duplicate code