fix
[my-code/hdw-sniff.git] / parse.c
diff --git a/parse.c b/parse.c
index c4a8891..32219bd 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -198,23 +198,23 @@ void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,cons
       if(new) {
         strcpy(sc,"flite 'station found by data package'");
         system(sc);
-      }
-      if(foo) {
-        sta->wds=1;
-        strcpy(sc,"flite 'wds package'");
-        system(sc);
-      }
-      memcpy(sta->snap,data,10);
-      if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)&
-         (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) {
-        sta->wep=0;
-        strcpy(sc,"flite 'not crypted'");
-        system(sc);
-      }
-      else {
-        sta->wep=WEP;
-        strcpy(sc,"flite ' crypted'");
-        system(sc);
+        if(foo) {
+          sta->wds=1;
+          strcpy(sc,"flite 'wds package'");
+          system(sc);
+        }
+        memcpy(sta->snap,data,10);
+        if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)&
+           (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) {
+          sta->wep=0;
+          strcpy(sc,"flite 'not crypted'");
+          system(sc);
+        }
+        else {
+          sta->wep=WEP;
+          strcpy(sc,"flite ' crypted'");
+          system(sc);
+        }
       }
          
     //}