/* frame type */
/* management */
if(!(w_hdr->frame_ctl & 0x0c)) {
+ tmp_buf1[0]='\0'; tmp_buf2[0]='\0';
if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_REQ)>0)
strcpy(tmp_buf,"association request");
else if((w_hdr->frame_ctl & IEEE802_11_STYPE_ASSOC_RESP)>0)
strcpy(tmp_buf,"deauthentification");
else strcpy(tmp_buf,"impossible situation \%) - go mail the author.");
}
- else strcpy(tmp_buf,"control & data frame type not supported yet");
- /* print out frame type */
+ else strcpy(tmp_buf,"control or data frame type");
+
printf("=> %s\n",tmp_buf);
- printf(" %s%s\n",tmp_buf1,tmp_buf2);
+ if(strlen(tmp_buf1)>0 & strlen(tmp_buf2)>0) printf(" %s%s\n",
+ tmp_buf1,
+ tmp_buf2);
printf("duration/id: 0x%x\n",w_hdr->duration_id);
printf("version check ... %s\n",
((w_hdr->frame_ctl & IEEE802_11_FCTL_VERS)==0x00)?