diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-12 01:58:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 16:48:04 -0400 |
commit | 7c5745cc0859b5a628d7c39530a953e3983e6c1c (patch) | |
tree | 82d41ba2ab0bd92f38b66673545ba7bf9cb48669 /drivers/staging/csr/data_tx.c | |
parent | 60ac2e9f7f76f90ba714b46332459eba397989b6 (diff) |
Staging: csr: data_tx: clean up tab mess
This patch converts spaces to tabs.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr/data_tx.c')
-rw-r--r-- | drivers/staging/csr/data_tx.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/staging/csr/data_tx.c b/drivers/staging/csr/data_tx.c index 8ed7a7845cc..d2c29545058 100644 --- a/drivers/staging/csr/data_tx.c +++ b/drivers/staging/csr/data_tx.c | |||
@@ -18,33 +18,33 @@ | |||
18 | int | 18 | int |
19 | uf_verify_m4(unifi_priv_t *priv, const unsigned char *packet, unsigned int length) | 19 | uf_verify_m4(unifi_priv_t *priv, const unsigned char *packet, unsigned int length) |
20 | { | 20 | { |
21 | const unsigned char *p = packet; | 21 | const unsigned char *p = packet; |
22 | u16 keyinfo; | 22 | u16 keyinfo; |
23 | 23 | ||
24 | 24 | ||
25 | if (length < (4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 1 + 8)) { | 25 | if (length < (4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 1 + 8)) { |
26 | return 1; | 26 | return 1; |
27 | } | 27 | } |
28 | 28 | ||
29 | p += 8; | 29 | p += 8; |
30 | keyinfo = p[5] << 8 | p[6]; /* big-endian */ | 30 | keyinfo = p[5] << 8 | p[6]; /* big-endian */ |
31 | if ( | 31 | if ( |
32 | (p[0] == 1 || p[0] == 2) /* protocol version 802.1X-2001 (WPA) or -2004 (WPA2) */ && | 32 | (p[0] == 1 || p[0] == 2) /* protocol version 802.1X-2001 (WPA) or -2004 (WPA2) */ && |
33 | p[1] == 3 /* EAPOL-Key */ && | 33 | p[1] == 3 /* EAPOL-Key */ && |
34 | /* don't bother checking p[2] p[3] (hh ll, packet body length) */ | 34 | /* don't bother checking p[2] p[3] (hh ll, packet body length) */ |
35 | (p[4] == 254 || p[4] == 2) /* descriptor type P802.1i-D3.0 (WPA) or 802.11i-2004 (WPA2) */ && | 35 | (p[4] == 254 || p[4] == 2) /* descriptor type P802.1i-D3.0 (WPA) or 802.11i-2004 (WPA2) */ && |
36 | ((keyinfo & 0x0007) == 1 || (keyinfo & 0x0007) == 2) /* key descriptor version */ && | 36 | ((keyinfo & 0x0007) == 1 || (keyinfo & 0x0007) == 2) /* key descriptor version */ && |
37 | (keyinfo & ~0x0207U) == 0x0108 && /* key info for 4/4 or 4/2 -- ignore key desc version and sec bit (since varies in WPA 4/4) */ | 37 | (keyinfo & ~0x0207U) == 0x0108 && /* key info for 4/4 or 4/2 -- ignore key desc version and sec bit (since varies in WPA 4/4) */ |
38 | (p[4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 0] == 0 && /* key data length (2 octets) 0 for 4/4 only */ | 38 | (p[4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 0] == 0 && /* key data length (2 octets) 0 for 4/4 only */ |
39 | p[4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 1] == 0) | 39 | p[4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 1] == 0) |
40 | ) { | 40 | ) { |
41 | unifi_trace(priv, UDBG1, "uf_verify_m4: M4 detected \n"); | 41 | unifi_trace(priv, UDBG1, "uf_verify_m4: M4 detected \n"); |
42 | return 0; | 42 | return 0; |
43 | } | 43 | } |
44 | else | 44 | else |
45 | { | 45 | { |
46 | return 1; | 46 | return 1; |
47 | } | 47 | } |
48 | } | 48 | } |
49 | 49 | ||
50 | /* | 50 | /* |