mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 18:42:47 +01:00
mpdu: add new status code enum
mpdu.h reason codes were being abused as status codes for Auth/Assoc protocols. This adds a whole new enum for status codes.
This commit is contained in:
parent
45e5c42726
commit
ffd8e81774
109
src/mpdu.h
109
src/mpdu.h
@ -157,6 +157,115 @@ enum mmpdu_reason_code {
|
||||
MMPDU_REASON_CODE_AUTHORIZATION_DEENABLED = 107,
|
||||
};
|
||||
|
||||
/*
|
||||
* 802.11-2016, Section 9.4.1.9 Status Code field
|
||||
*/
|
||||
enum mmpdu_status_code {
|
||||
MMPDU_STATUS_CODE_UNSPECIFIED = 1,
|
||||
MMPDU_STATUS_CODE_TDLS_REJECTED_ALT_PROV = 2,
|
||||
MMPDU_STATUS_CODE_TDLS_REJECTED = 3,
|
||||
/* 4 reserved */
|
||||
MMPDU_STATUS_CODE_SECURITY_DISABLED = 5,
|
||||
MMPDU_STATUS_CODE_UNACCEPTABLE_LIFETIME = 6,
|
||||
MMPDU_STATUS_CODE_NOT_IN_SAME_BSS = 7,
|
||||
/* 8-9 reserved */
|
||||
MMPDU_STATUS_CODE_CAPABILITIES_MISMATCH = 10,
|
||||
MMPDU_STATUS_CODE_NO_ASSOC_EXISTS = 11,
|
||||
MMPDU_STATUS_CODE_DENIED_OTHER_REASON = 12,
|
||||
MMPDU_STATUS_CODE_UNSUP_AUTH_ALG = 13,
|
||||
MMPDU_STATUS_CODE_TRANS_SEQ_ERROR = 14,
|
||||
MMPDU_STATUS_CODE_CHALLENGE_FAILURE = 15,
|
||||
MMPDU_STATUS_CODE_REJECTED_SEQ_TIMEOUT = 16,
|
||||
MMPDU_STATUS_CODE_DENIED_NO_MORE_STAS = 17,
|
||||
MMPDU_STATUS_CODE_REFUSED_RATE_MISMATCH = 18,
|
||||
MMPDU_STATUS_CODE_NO_SHORT_PREAMBLE_SUPP = 19,
|
||||
/* 20-21 reserved */
|
||||
MMPDU_STATUS_CODE_REJECTED_SPECTRUM_MGMT = 22,
|
||||
MMPDU_STATUS_CODE_REJECTED_BAD_POWER_CAP = 23,
|
||||
MMPDU_STATUS_CODE_REJECTED_BAD_SUPP_CHAN = 24,
|
||||
MMPDU_STATUS_CODE_DENIED_NO_SHORT_SLOT_TIME = 25,
|
||||
/* 26 reserved */
|
||||
MMPDU_STATUS_CODE_DENIED_NO_HT_SUPP = 27,
|
||||
MMPDU_STATUS_CODE_R0KH_UNREACHABLE = 28,
|
||||
MMPDU_STATUS_CODE_DENIED_PCO_TIME_NOT_SUPP = 29,
|
||||
MMPDU_STATUS_CODE_REFUSED_TEMPORARILY = 30,
|
||||
MMPDU_STATUS_CODE_ROBUST_MGMT_POLICY_VIOLATION = 31,
|
||||
MMPDU_STATUS_CODE_UNSPECIFIED_QOS_FAILURE = 32,
|
||||
MMPDU_STATUS_CODE_DENIED_UNSUFFICIENT_BANDWIDTH = 33,
|
||||
MMPDU_STATUS_CODE_DENIED_POOR_CHAN_CONDITIONS = 34,
|
||||
MMPDU_STATUS_CODE_DENIED_QOS_NOT_SUPP = 35,
|
||||
/* 36 reserved */
|
||||
MMPDU_STATUS_CODE_REQUEST_DECLINED = 37,
|
||||
MMPDU_STATUS_CODE_INVALID_PARAMETERS = 38,
|
||||
MMPDU_STATUS_CODE_REJECTED_WITH_SUGG_CHANGES = 39,
|
||||
MMPDU_STATUS_CODE_INVALID_ELEMENT = 40,
|
||||
MMPDU_STATUS_CODE_INVALID_GROUP_CIPHER = 41,
|
||||
MMPDU_STATUS_CODE_INVALID_PAIRWISE_CIPHER = 42,
|
||||
MMPDU_STATUS_CODE_INVALID_AKMP = 43,
|
||||
MMPDU_STATUS_CODE_UNSUPP_RSNE_VERSION = 44,
|
||||
MMPDU_STATUS_CODE_INVALID_RSNE_CAP = 45,
|
||||
MMPDU_STATUS_CODE_CIPHER_OUT_OF_POLICY = 46,
|
||||
MMPDU_STATUS_CODE_REJECTED_FOR_DELAY_PERIOD = 47,
|
||||
MMPDU_STATUS_CODE_DLS_NOT_ALLOWED = 48,
|
||||
MMPDU_STATUS_CODE_NOT_PRESENT = 49,
|
||||
MMPDU_STATUS_CODE_NOT_QOS_STA = 50,
|
||||
MMPDU_STATUS_CODE_LISTEN_INTERVAL_TOO_LARGE = 51,
|
||||
MMPDU_STATUS_CODE_INVALID_FT_ACTION_FRAME_COUNT = 52,
|
||||
MMPDU_STATUS_CODE_INVALID_PMKID = 53,
|
||||
MMPDU_STATUS_CODE_INVALID_MDE = 54,
|
||||
MMPDU_STATUS_CODE_INVALID_FTE = 55,
|
||||
MMPDU_STATUS_CODE_REQ_TCLAS_NOT_SUPP = 56,
|
||||
MMPDU_STATUS_CODE_INSUFFICIENT_TCLAS_PROCESS_RESOURCE = 57,
|
||||
MMPDU_STATUS_CODE_TRY_ANOTHER_BSS = 58,
|
||||
MMPDU_STATUS_CODE_GAS_ADVERTISEMENT_NOT_SUPP = 59,
|
||||
MMPDU_STATUS_CODE_NO_OUTSTANDING_GAS_REQ = 60,
|
||||
MMPDU_STATUS_CODE_GAS_RESP_NOT_RECEIVED = 61,
|
||||
MMPDU_STATUS_CODE_GAS_QUERY_TIMEOUT = 62,
|
||||
MMPDU_STATUS_CODE_GAS_QUERY_RESP_TOO_LARGE = 63,
|
||||
MMPDU_STATUS_CODE_REJECTED_HOME_SUGG_CHANGES = 64,
|
||||
MMPDU_STATUS_CODE_SERVER_UNREACHABLE = 65,
|
||||
/* 66 reserved */
|
||||
MMPDU_STATUS_CODE_REJECTED_FOR_SSP_PERMISSIONS = 67,
|
||||
MMPDU_STATUS_CODE_REFUSED_UNAUTH_ACCESS_NOT_SUPP = 68,
|
||||
/* 69-71 reserved */
|
||||
MMPDU_STATUS_CODE_INVALID_RSNE = 72,
|
||||
MMPDU_STATUS_CODE_U_APSD_COEX_NOT_SUPP = 73,
|
||||
MMPDU_STATUS_CODE_U_APSD_COEX_MODE_NOT_SUPP = 74,
|
||||
MMPDU_STATUS_CODE_BAD_INTERVAL_WITH_U_APSD_COEX = 75,
|
||||
MMPDU_STATUS_CODE_ANTI_CLOGGING_TOKEN_REQ = 76,
|
||||
MMPDU_STATUS_CODE_UNSUPP_FINITE_CYCLIC_GROUP = 77,
|
||||
MMPDU_STATUS_CODE_CANNOT_FIND_ALT_TBTT = 78,
|
||||
MMPDU_STATUS_CODE_TRANSMISSION_FAILURE = 79,
|
||||
/* Spec has 2 errors with the same name (56 above) bug? */
|
||||
MMPDU_STATUS_CODE_REQ_TCLAS_NOT_SUPP2 = 80,
|
||||
MMPDU_STATUS_CODE_TCLAS_RESOURCE_EXAUSTED = 81,
|
||||
MMPDU_STATUS_CODE_REJECTED_WITH_SUGG_BSS_TRANS = 82,
|
||||
MMPDU_STATUS_CODE_REJECT_WITH_SCHEDULE = 83,
|
||||
MMPDU_STATUS_CODE_REJECT_NO_WAKEUP_SPECIFIED = 84,
|
||||
MMPDU_STATUS_CODE_SUCCESS_POWER_SAVE_MODE = 85,
|
||||
MMPDU_STATUS_CODE_PENDING_ADMITTING_FST_SESSION = 86,
|
||||
MMPDU_STATUS_CODE_PERFORMING_FST_NOW = 87,
|
||||
MMPDU_STATUS_CODE_PENDING_GAP_IN_BA_WINDOW = 88,
|
||||
MMPDU_STATUS_CODE_REJECT_U_PID_SETTING = 89,
|
||||
/* 90-91 reserved */
|
||||
MMPDU_STATUS_CODE_REFUSED_EXTERNAL_REASON = 92,
|
||||
MMPDU_STATUS_CODE_REFUSED_AP_OOM = 93,
|
||||
MMPDU_STATUS_CODE_REJECT_EMERGENCY_SERVICE_NOT_SUPP = 94,
|
||||
MMPDU_STATUS_CODE_QUERY_RESPONSE_OUTSTANDING = 95,
|
||||
MMPDU_STATUS_CODE_REJECT_DSE_BAND = 96,
|
||||
MMPDU_STATUS_CODE_TCLAS_PROCESSING_TERM = 97,
|
||||
MMPDU_STATUS_CODE_TS_SCHEDULE_CONFLICT = 98,
|
||||
MMPDU_STATUS_CODE_DENIED_WITH_SUGG_BAND = 99,
|
||||
MMPDU_STATUS_CODE_MCCAOP_RESERVATION_CONFLICT = 100,
|
||||
MMPDU_STATUS_CODE_MAF_LIMIT_EXCEEDED = 101,
|
||||
MMPDU_STATUS_CODE_MCCA_TRACK_LIMIT_EXCEEDED = 102,
|
||||
MMPDU_STATUS_CODE_DENIED_SPECTRUM_MGMT = 103,
|
||||
MMPDU_STATUS_CODE_DENIED_VHT_NOT_SUPP = 104,
|
||||
MMPDU_STATUS_CODE_ENABLEMENT_DENIED = 105,
|
||||
MMPDU_STATUS_CODE_RESTRICT_AUTH_GDB = 106,
|
||||
MMPDU_STATUS_CODE_AUTHORIZATION_DEENABLED = 107,
|
||||
};
|
||||
|
||||
/* 802.11, Section 8.2.4.1.1, Figure 8-2 */
|
||||
struct mpdu_fc {
|
||||
#if defined(__LITTLE_ENDIAN_BITFIELD)
|
||||
|
Loading…
Reference in New Issue
Block a user