From f3ad319e593bd65b3716dcabb47447cbc5477c72 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 5 Jun 2019 14:51:30 -0700 Subject: [PATCH] ie: add advertisement protocol definitions 802.11 defines GAS (generic advertisement service) which can be used to query supported advertisement protocols from an AP before authentication/association. Hotspot/OSEN only care about the ANQP protocol, but the way the IE is structured potentially requires iterating through several tuples before you reach the ANQP protocol identifier. Because of this we define all protocol identifiers. --- src/ie.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ie.h b/src/ie.h index a6b2c8f7..d610a079 100644 --- a/src/ie.h +++ b/src/ie.h @@ -234,6 +234,15 @@ enum ie_type { IE_TYPE_OWE_DH_PARAM = 256 + 32, }; +enum ie_advertisement_id { + IE_ADVERTISEMENT_ANQP = 0, + IE_ADVERTISEMENT_MIH_SERVICE = 1, + IE_ADVERTISEMENT_MIH_DISCOVERY = 2, + IE_ADVERTISEMENT_EAS = 3, + IE_ADVERTISEMENT_RLQP = 4, + IE_ADVERTISEMENT_VENDOR_SPECIFIC = 221, +}; + enum ie_rsn_cipher_suite { IE_RSN_CIPHER_SUITE_USE_GROUP_CIPHER = 0x0001, IE_RSN_CIPHER_SUITE_WEP40 = 0x0002,