From 312d8a064ec3e3eaf283e809890e9d8dc5a077dc Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Mon, 2 Jul 2007 19:36:48 +0000 Subject: fix REASON codes. --- sys/net80211/ieee80211.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h index 6e9c7f78219..137485d4ffc 100644 --- a/sys/net80211/ieee80211.h +++ b/sys/net80211/ieee80211.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.h,v 1.22 2007/07/02 18:16:35 damien Exp $ */ +/* $OpenBSD: ieee80211.h,v 1.23 2007/07/02 19:36:47 damien Exp $ */ /* $NetBSD: ieee80211.h,v 1.6 2004/04/30 23:51:53 dyoung Exp $ */ /*- @@ -457,10 +457,7 @@ enum { /* * Reason codes (see Table 22). - * - * Unlisted codes are reserved */ - enum { IEEE80211_REASON_UNSPECIFIED = 1, IEEE80211_REASON_AUTH_EXPIRE = 2, @@ -472,11 +469,22 @@ enum { IEEE80211_REASON_ASSOC_LEAVE = 8, IEEE80211_REASON_ASSOC_NOT_AUTHED = 9, - IEEE80211_REASON_RSN_REQUIRED = 11, - IEEE80211_REASON_RSN_INCONSISTENT = 12, IEEE80211_REASON_IE_INVALID = 13, IEEE80211_REASON_MIC_FAILURE = 14, + IEEE80211_REASON_BAD_GROUP_CIPHER = 18, + IEEE80211_REASON_BAD_PAIRWISE_CIPHER = 19, + IEEE80211_REASON_BAD_AKMP = 20, + IEEE80211_REASON_RSN_IE_VER_UNSUP = 21, + IEEE80211_REASON_RSN_IE_BAD_CAP = 22, + + IEEE80211_REASON_CIPHER_REJ = 24 +}; + +/* + * Status codes (see Table 23). + */ +enum { IEEE80211_STATUS_SUCCESS = 0, IEEE80211_STATUS_UNSPECIFIED = 1, IEEE80211_STATUS_CAPINFO = 10, -- cgit v1.2.3