Skip to contentSkip to conversation

staging: ks7010: eap_packet: Rearrange the code

PATCH In review Tamara Diaconita 3 participants 4 messages Mar 8, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: ks7010: eap_packet: Rearrange the code

Split lines to have less than 80 characters.

Fix the checkpath.pl warning:
WARNING: line over 80 characters.

---
 drivers/staging/ks7010/eap_packet.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/ks7010/eap_packet.h +6 -3
index df7f760..7a3decf 100644
@@ -58,12 +58,15 @@ struct ieee802_1x_eapol_key {
 	 * encrypt the Key field; 64-bit NTP timestamp MAY be used here
 	 */
 	unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN];
-	unsigned char key_iv[IEEE8021X_KEY_IV_LEN];	/* cryptographically random number */
+	unsigned char key_iv[IEEE8021X_KEY_IV_LEN]; /* cryptographically random
+						     * number
+						     */
 	unsigned char key_index;	/*
 					 * key flag in the most significant bit:
 					 * 0 = broadcast (default key),
-					 * 1 = unicast (key mapping key); key index is in the
-					 * 7 least significant bits
+					 * 1 = unicast (key mapping key);
+					 * key index is in the 7 least
+					 * significant bits
 					 */
 	/*
 	 * HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
Signature · 1 line
2.9.3
#1 lore raw
Quoted 8 lines · Tamara Diaconita

Split lines to have less than 80 characters.

Fix the checkpath.pl warning:
WARNING: line over 80 characters.

---
 drivers/staging/ks7010/eap_packet.h | 9 ++++++---

Tamara, This driver is no longer in staging. I don't see it upstream either. I guess there's another path out of staging, other than graduation upstream ;)
alisons

Quoted 34 lines
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/ks7010/eap_packet.h +6 -3
index df7f760..7a3decf 100644
@@ -58,12 +58,15 @@ struct ieee802_1x_eapol_key {
 	 * encrypt the Key field; 64-bit NTP timestamp MAY be used here
 	 */
 	unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN];
-	unsigned char key_iv[IEEE8021X_KEY_IV_LEN];	/* cryptographically random number */
+	unsigned char key_iv[IEEE8021X_KEY_IV_LEN]; /* cryptographically random
+						     * number
+						     */
 	unsigned char key_index;	/*
 					 * key flag in the most significant bit:
 					 * 0 = broadcast (default key),
-					 * 1 = unicast (key mapping key); key index is in the
-					 * 7 least significant bits
+					 * 1 = unicast (key mapping key);
+					 * key index is in the 7 least
+					 * significant bits
 					 */
 	/*
 	 * HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
Signature · 8 lines
2.9.3

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170308174753.5540-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
#2 lore raw
Quoted 6 lines · Alison Schofield
Quoted 5 lines · Tamara Diaconita

Split lines to have less than 80 characters.

Fix the checkpath.pl warning:
WARNING: line over 80 characters.

Quoted 7 lines
Quoted 3 lines
---
 drivers/staging/ks7010/eap_packet.h | 9 ++++++---

Tamara, This driver is no longer in staging. I don't see it upstream either. I guess there's another path out of staging, other than graduation upstream ;)

Some drivers in staging are on the way out, instead of on the way in.

Others get replaced by a more mature driver for the device.

However, I just pulled staging-testing and I still see the file.

julia

Quoted 48 lines

alisons

Quoted 28 lines
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/ks7010/eap_packet.h +6 -4
index df7f760..7a3decf 100644
@@ -58,12 +58,15 @@ struct ieee802_1x_eapol_key {
 	 * encrypt the Key field; 64-bit NTP timestamp MAY be used here
 	 */
 	unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN];
-	unsigned char key_iv[IEEE8021X_KEY_IV_LEN];	/* cryptographically random number */
+	unsigned char key_iv[IEEE8021X_KEY_IV_LEN]; /* cryptographically random
+						     * number
+						     */
 	unsigned char key_index;	/*
 					 * key flag in the most significant bit:
 					 * 0 = broadcast (default key),
-					 * 1 = unicast (key mapping key); key index is in the
-					 * 7 least significant bits
+					 * 1 = unicast (key mapping key);
+					 * key index is in the 7 least
+					 * significant bits
 					 */
 	/*
 	 * HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
--

2.9.3

Quoted 6 lines

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170308174753.5540-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170308203952.GB3284%40d830.WORKGROUP.
For more options, visit https://groups.google.com/d/optout.

#3 lore raw
Quoted 18 lines · Julia Lawall
Quoted 6 lines · Alison Schofield
Quoted 5 lines · Tamara Diaconita

Split lines to have less than 80 characters.

Fix the checkpath.pl warning:
WARNING: line over 80 characters.

Quoted 7 lines
Quoted 3 lines
---
 drivers/staging/ks7010/eap_packet.h | 9 ++++++---

Tamara, This driver is no longer in staging. I don't see it upstream either. I guess there's another path out of staging, other than graduation upstream ;)

Quoted 8 lines

Some drivers in staging are on the way out, instead of on the way in.

Others get replaced by a more mature driver for the device.

However, I just pulled staging-testing and I still see the file.

julia

Hi Tamara,

Got, compiled it, checkpatched it. So, functionally- great! (sorry for the confusion)

2 things to tweak:

1) In the Subject, "Rearrange the code" is a bit broad for this change. Let's be more specific and say something like: "format comments to fit in line"
2) it's checkpatch, not checkpath

thanks,
alisons

Quoted 48 lines
Quoted 48 lines

alisons

Quoted 28 lines
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/ks7010/eap_packet.h +6 -4
index df7f760..7a3decf 100644
@@ -58,12 +58,15 @@ struct ieee802_1x_eapol_key {
 	 * encrypt the Key field; 64-bit NTP timestamp MAY be used here
 	 */
 	unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN];
-	unsigned char key_iv[IEEE8021X_KEY_IV_LEN];	/* cryptographically random number */
+	unsigned char key_iv[IEEE8021X_KEY_IV_LEN]; /* cryptographically random
+						     * number
+						     */
 	unsigned char key_index;	/*
 					 * key flag in the most significant bit:
 					 * 0 = broadcast (default key),
-					 * 1 = unicast (key mapping key); key index is in the
-					 * 7 least significant bits
+					 * 1 = unicast (key mapping key);
+					 * key index is in the 7 least
+					 * significant bits
 					 */
 	/*
 	 * HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
--

2.9.3

Quoted 6 lines

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170308174753.5540-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170308203952.GB3284%40d830.WORKGROUP.
For more options, visit https://groups.google.com/d/optout.