Skip to content

Commit

Permalink
Airbase-ng: fixed incorrect enum used when responding to (re)associat…
Browse files Browse the repository at this point in the history
…ion requests
  • Loading branch information
Mister-X- committed Jul 31, 2021
1 parent b0658d2 commit b11f6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/airbase-ng/airbase-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -2564,10 +2564,10 @@ packet_recv(uint8_t * packet, size_t length, struct AP_conf * apc, int external)
// Set type/subtype depending on the frame received
if (!reasso)
packet[0]
= IEEE80211_FC0_TYPE_MGT | IEEE80211_FC0_SUBTYPE_ASSOC_REQ;
= IEEE80211_FC0_TYPE_MGT | IEEE80211_FC0_SUBTYPE_ASSOC_RESP;
else
packet[0] = IEEE80211_FC0_TYPE_MGT
| IEEE80211_FC0_SUBTYPE_REASSOC_REQ;
| IEEE80211_FC0_SUBTYPE_REASSOC_RESP;

// Add the addresses
memcpy(packet + 4, smac, 6);
Expand Down

0 comments on commit b11f6b9

Please sign in to comment.