Skip to content

Commit 03e220a

Browse files
zhhyu7anchao
authored andcommitted
bcm43xxx: revert part of the previous upstream code
Revert WPA failure reason codes to the previous community version Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
1 parent 2bce0f4 commit 03e220a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

drivers/wireless/ieee80211/bcm43xxx/bcmf_ioctl.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3297,22 +3297,22 @@ typedef enum
32973297

32983298
/* WPA failure reason codes carried in the WLC_E_PSK_SUP event */
32993299

3300-
WLC_E_SUP_OTHER = 0, /* Other reason */
3301-
WLC_E_SUP_DECRYPT_KEY_DATA = 1, /* Decryption of key data failed */
3302-
WLC_E_SUP_BAD_UCAST_WEP128 = 2, /* Illegal use of ucast WEP128 */
3303-
WLC_E_SUP_BAD_UCAST_WEP40 = 3, /* Illegal use of ucast WEP40 */
3304-
WLC_E_SUP_UNSUP_KEY_LEN = 4, /* Unsupported key length */
3305-
WLC_E_SUP_PW_KEY_CIPHER = 5, /* Unicast cipher mismatch in pairwise key */
3306-
WLC_E_SUP_MSG3_TOO_MANY_IE = 6, /* WPA IE contains > 1 RSN IE in key msg 3 */
3307-
WLC_E_SUP_MSG3_IE_MISMATCH = 7, /* WPA IE mismatch in key message 3 */
3308-
WLC_E_SUP_NO_INSTALL_FLAG = 8, /* INSTALL flag unset in 4-way msg */
3309-
WLC_E_SUP_MSG3_NO_GTK = 9, /* encapsulated GTK missing from msg 3 */
3310-
WLC_E_SUP_GRP_KEY_CIPHER = 10, /* Multicast cipher mismatch in group key */
3311-
WLC_E_SUP_GRP_MSG1_NO_GTK = 11, /* encapsulated GTK missing from group msg 1 */
3312-
WLC_E_SUP_GTK_DECRYPT_FAIL = 12, /* GTK decrypt failure */
3313-
WLC_E_SUP_SEND_FAIL = 13, /* message send failure */
3314-
WLC_E_SUP_DEAUTH = 14, /* received FC_DEAUTH */
3315-
WLC_E_SUP_WPA_PSK_TMO = 15, /* WPA PSK 4-way handshake timeout */
3300+
WLC_E_SUP_OTHER = 0 + WLC_E_SUP_REASON_OFFSET, /* Other reason */
3301+
WLC_E_SUP_DECRYPT_KEY_DATA = 1 + WLC_E_SUP_REASON_OFFSET, /* Decryption of key data failed */
3302+
WLC_E_SUP_BAD_UCAST_WEP128 = 2 + WLC_E_SUP_REASON_OFFSET, /* Illegal use of ucast WEP128 */
3303+
WLC_E_SUP_BAD_UCAST_WEP40 = 3 + WLC_E_SUP_REASON_OFFSET, /* Illegal use of ucast WEP40 */
3304+
WLC_E_SUP_UNSUP_KEY_LEN = 4 + WLC_E_SUP_REASON_OFFSET, /* Unsupported key length */
3305+
WLC_E_SUP_PW_KEY_CIPHER = 5 + WLC_E_SUP_REASON_OFFSET, /* Unicast cipher mismatch in pairwise key */
3306+
WLC_E_SUP_MSG3_TOO_MANY_IE = 6 + WLC_E_SUP_REASON_OFFSET, /* WPA IE contains > 1 RSN IE in key msg 3 */
3307+
WLC_E_SUP_MSG3_IE_MISMATCH = 7 + WLC_E_SUP_REASON_OFFSET, /* WPA IE mismatch in key message 3 */
3308+
WLC_E_SUP_NO_INSTALL_FLAG = 8 + WLC_E_SUP_REASON_OFFSET, /* INSTALL flag unset in 4-way msg */
3309+
WLC_E_SUP_MSG3_NO_GTK = 9 + WLC_E_SUP_REASON_OFFSET, /* encapsulated GTK missing from msg 3 */
3310+
WLC_E_SUP_GRP_KEY_CIPHER = 10 + WLC_E_SUP_REASON_OFFSET, /* Multicast cipher mismatch in group key */
3311+
WLC_E_SUP_GRP_MSG1_NO_GTK = 11 + WLC_E_SUP_REASON_OFFSET, /* encapsulated GTK missing from group msg 1 */
3312+
WLC_E_SUP_GTK_DECRYPT_FAIL = 12 + WLC_E_SUP_REASON_OFFSET, /* GTK decrypt failure */
3313+
WLC_E_SUP_SEND_FAIL = 13 + WLC_E_SUP_REASON_OFFSET, /* message send failure */
3314+
WLC_E_SUP_DEAUTH = 14 + WLC_E_SUP_REASON_OFFSET, /* received FC_DEAUTH */
3315+
WLC_E_SUP_WPA_PSK_TMO = 15 + WLC_E_SUP_REASON_OFFSET, /* WPA PSK 4-way handshake timeout */
33163316

33173317
/* Reason codes for LINK */
33183318

0 commit comments

Comments
 (0)