Skip to content

Commit

Permalink
fixed some copy and paster errors
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Sep 9, 2024
1 parent 3747fb9 commit 7c88b43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions hcxpcapngtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -3208,13 +3208,15 @@ while(0 < infolen)
if(tagptr->len >= RSNIE_LEN_MIN)
{
if(gettagrsn(tagptr->len, tagptr->data, zeiger) == false) return false;
tagok |= TAG_RSN_OK;
}
}
else if(tagptr->id == TAG_VENDOR)
{
if(tagptr->len >= VENDORIE_SIZE)
{
if(gettagvendor(tagptr->len, tagptr->data, zeiger) == false) return false;
tagok |= TAG_VENDOR_OK;
}
}
infoptr += tagptr->len +IETAG_SIZE;
Expand All @@ -3223,8 +3225,8 @@ while(0 < infolen)
if((infolen != 0) && (infolen != 4) && (ef == false))
{
if((tagok & TAG_SSID_OK) == TAG_SSID_OK) return true;
if((tagok & TAG_SSID_RSN) == TAG_SSID_RSN) return true;
if((tagok & TAG_SSID_VENDOR) == TAG_SSID_VENDOR) return true;
if((tagok & TAG_RSN_OK) == TAG_RSN_OK) return true;
if((tagok & TAG_VENDOR_OK) == TAG_VENDOR_OK) return true;
return false;
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions include/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ struct ie_tag
#define TAG_VENDOR 0xdd
#define TAG_EXT 0xff
#define TAG_SSID_OK 0x01
#define TAG_SSID_RSN 0x02
#define TAG_SSID_VENDOR 0x04
#define TAG_RSN_OK 0x02
#define TAG_VENDOR_OK 0x04
uint8_t len;
uint8_t data[1];
} __attribute__((__packed__));
Expand Down

0 comments on commit 7c88b43

Please sign in to comment.