From: Kurt Kanzenbach <kurt@kmk-computers.de>
To: gregkh@linuxfoundation.org
Cc: dilekuzulmez@gmail.com, arnd@arndb.de, navyasri.tech@gmail.com,
paul.gortmaker@windriver.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org,
Kurt Kanzenbach <kurt@kmk-computers.de>
Subject: [PATCH 6/8] Staging: rtl8192u: ieee80211: corrected block comments
Date: Wed, 28 Oct 2015 14:01:06 +0100 [thread overview]
Message-ID: <1446037268-19149-7-git-send-email-kurt@kmk-computers.de> (raw)
In-Reply-To: <1446037268-19149-1-git-send-email-kurt@kmk-computers.de>
This patch reformats some block comments in order to
match the Linux kernel coding style.
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
---
.../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 31 +++++++++++++++-------
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
index bf71501..7c166cf 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
@@ -256,8 +256,10 @@ static void tkip_mixing_phase1(u16 *TTAK, const u8 *TK, const u8 *TA, u32 IV32)
static void tkip_mixing_phase2(u8 *WEPSeed, const u8 *TK, const u16 *TTAK,
u16 IV16)
{
- /* Make temporary area overlap WEP seed so that the final copy can be
- * avoided on little endian hosts. */
+ /*
+ * Make temporary area overlap WEP seed so that the final copy can be
+ * avoided on little endian hosts.
+ */
u16 *PPK = (u16 *) &WEPSeed[4];
/* Step 1 - make copy of TTAK and bring in TSC */
@@ -283,8 +285,10 @@ static void tkip_mixing_phase2(u8 *WEPSeed, const u8 *TK, const u16 *TTAK,
PPK[4] += RotR1(PPK[3]);
PPK[5] += RotR1(PPK[4]);
- /* Step 3 - bring in last of TK bits, assign 24-bit WEP IV value
- * WEPSeed[0..2] is transmitted as WEP IV */
+ /*
+ * Step 3 - bring in last of TK bits, assign 24-bit WEP IV value
+ * WEPSeed[0..2] is transmitted as WEP IV
+ */
WEPSeed[0] = Hi8(IV16);
WEPSeed[1] = (Hi8(IV16) | 0x20) & 0x7F;
WEPSeed[2] = Lo8(IV16);
@@ -463,8 +467,11 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
if (memcmp(icv, pos + plen, 4) != 0) {
if (iv32 != tkey->rx_iv32) {
- /* Previously cached Phase1 result was already lost, so
- * it needs to be recalculated for the next packet. */
+ /*
+ * Previously cached Phase1 result was already
+ * lost, so it needs to be recalculated for the
+ * next packet.
+ */
tkey->rx_phase1_done = 0;
}
if (net_ratelimit()) {
@@ -477,8 +484,10 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
}
- /* Update real counters only after Michael MIC verification has
- * completed */
+ /*
+ * Update real counters only after Michael MIC verification has
+ * completed.
+ */
tkey->rx_iv32_new = iv32;
tkey->rx_iv16_new = iv16;
@@ -633,8 +642,10 @@ static int ieee80211_michael_mic_verify(struct sk_buff *skb, int keyidx,
return -1;
}
- /* Update TSC counters for RX now that the packet verification has
- * completed. */
+ /*
+ * Update TSC counters for RX now that the packet verification has
+ * completed.
+ */
tkey->rx_iv32 = tkey->rx_iv32_new;
tkey->rx_iv16 = tkey->rx_iv16_new;
--
2.4.10
next prev parent reply other threads:[~2015-10-28 13:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-28 13:01 [PATCH 0/8] Staging: rtl8192u: ieee80211: checkpatch cleanups Kurt Kanzenbach
2015-10-28 13:01 ` [PATCH 1/8] Staging: rtl8192u: ieee80211: fixed open brace positions Kurt Kanzenbach
2015-10-28 13:01 ` [PATCH 2/8] Staging: rtl8192u: ieee80211: fixed position of else statements Kurt Kanzenbach
2015-10-28 13:01 ` [PATCH 3/8] Staging: rtl8192u: ieee80211: added missing space around '=' Kurt Kanzenbach
2015-10-28 13:01 ` [PATCH 4/8] Staging: rtl8192u: ieee80211: added missing spaces after if Kurt Kanzenbach
2015-10-28 13:01 ` [PATCH 5/8] Staging: rtl8192u: ieee80211: corrected indent Kurt Kanzenbach
2015-10-28 13:01 ` Kurt Kanzenbach [this message]
2015-10-28 13:01 ` [PATCH 7/8] Staging: rtl8192u: ieee80211: removed unnecessary braces Kurt Kanzenbach
2015-10-28 13:01 ` [PATCH 8/8] Staging: rtl8192u: ieee80211: added missing blank lines Kurt Kanzenbach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446037268-19149-7-git-send-email-kurt@kmk-computers.de \
--to=kurt@kmk-computers.de \
--cc=arnd@arndb.de \
--cc=devel@driverdev.osuosl.org \
--cc=dilekuzulmez@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=navyasri.tech@gmail.com \
--cc=paul.gortmaker@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®