diff options
author | Kurt Kanzenbach <kurt@kmk-computers.de> | 2015-10-28 09:01:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 20:10:55 -0400 |
commit | e3cc3136df33de1aa26d606f2a42cac3fd30cf54 (patch) | |
tree | 06bc4b0323e41aab2be290f3d2a666abaec6535c | |
parent | 0d92e43496f803dcbb3c6542ffe133d7b08b96aa (diff) |
Staging: rtl8192u: ieee80211: added missing blank lines
This patch resolves the following checkpatch warnings:
- WARNING: Missing a blank line after declarations
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c index 157af31d2383..908bc2eb4d29 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | |||
@@ -297,6 +297,7 @@ static void tkip_mixing_phase2(u8 *WEPSeed, const u8 *TK, const u16 *TTAK, | |||
297 | #ifdef __BIG_ENDIAN | 297 | #ifdef __BIG_ENDIAN |
298 | { | 298 | { |
299 | int i; | 299 | int i; |
300 | |||
300 | for (i = 0; i < 6; i++) | 301 | for (i = 0; i < 6; i++) |
301 | PPK[i] = (PPK[i] << 8) | (PPK[i] >> 8); | 302 | PPK[i] = (PPK[i] << 8) | (PPK[i] >> 8); |
302 | } | 303 | } |
@@ -395,6 +396,7 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) | |||
395 | u32 crc; | 396 | u32 crc; |
396 | struct scatterlist sg; | 397 | struct scatterlist sg; |
397 | int plen; | 398 | int plen; |
399 | |||
398 | if (skb->len < hdr_len + 8 + 4) | 400 | if (skb->len < hdr_len + 8 + 4) |
399 | return -1; | 401 | return -1; |
400 | 402 | ||
@@ -630,6 +632,7 @@ static int ieee80211_michael_mic_verify(struct sk_buff *skb, int keyidx, | |||
630 | if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { | 632 | if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { |
631 | struct rtl_80211_hdr_4addr *hdr; | 633 | struct rtl_80211_hdr_4addr *hdr; |
632 | hdr = (struct rtl_80211_hdr_4addr *) skb->data; | 634 | hdr = (struct rtl_80211_hdr_4addr *) skb->data; |
635 | |||
633 | printk(KERN_DEBUG "%s: Michael MIC verification failed for " | 636 | printk(KERN_DEBUG "%s: Michael MIC verification failed for " |
634 | "MSDU from %pM keyidx=%d\n", | 637 | "MSDU from %pM keyidx=%d\n", |
635 | skb->dev ? skb->dev->name : "N/A", hdr->addr2, | 638 | skb->dev ? skb->dev->name : "N/A", hdr->addr2, |
@@ -703,6 +706,7 @@ static int ieee80211_tkip_get_key(void *key, int len, u8 *seq, void *priv) | |||
703 | /* Return the sequence number of the last transmitted frame. */ | 706 | /* Return the sequence number of the last transmitted frame. */ |
704 | u16 iv16 = tkey->tx_iv16; | 707 | u16 iv16 = tkey->tx_iv16; |
705 | u32 iv32 = tkey->tx_iv32; | 708 | u32 iv32 = tkey->tx_iv32; |
709 | |||
706 | if (iv16 == 0) | 710 | if (iv16 == 0) |
707 | iv32--; | 711 | iv32--; |
708 | iv16--; | 712 | iv16--; |
@@ -721,6 +725,7 @@ static int ieee80211_tkip_get_key(void *key, int len, u8 *seq, void *priv) | |||
721 | static char *ieee80211_tkip_print_stats(char *p, void *priv) | 725 | static char *ieee80211_tkip_print_stats(char *p, void *priv) |
722 | { | 726 | { |
723 | struct ieee80211_tkip_data *tkip = priv; | 727 | struct ieee80211_tkip_data *tkip = priv; |
728 | |||
724 | p += sprintf(p, "key[%d] alg=TKIP key_set=%d " | 729 | p += sprintf(p, "key[%d] alg=TKIP key_set=%d " |
725 | "tx_pn=%02x%02x%02x%02x%02x%02x " | 730 | "tx_pn=%02x%02x%02x%02x%02x%02x " |
726 | "rx_pn=%02x%02x%02x%02x%02x%02x " | 731 | "rx_pn=%02x%02x%02x%02x%02x%02x " |