staging: rtl8188eu: core: rtw_security: Fix some formatting and misdocumentation
Fixes the following W=1 kernel build warning(s): from drivers/staging/rtl8188eu/core/rtw_security.c:10: drivers/staging/rtl8188eu/core/rtw_security.c:478: warning: Function parameter or member 'p1k' not described in 'phase1' drivers/staging/rtl8188eu/core/rtw_security.c:478: warning: Function parameter or member 'tk' not described in 'phase1' drivers/staging/rtl8188eu/core/rtw_security.c:478: warning: Function parameter or member 'ta' not described in 'phase1' drivers/staging/rtl8188eu/core/rtw_security.c:517: warning: Function parameter or member 'rc4key' not described in 'phase2' drivers/staging/rtl8188eu/core/rtw_security.c:517: warning: Function parameter or member 'tk' not described in 'phase2' drivers/staging/rtl8188eu/core/rtw_security.c:517: warning: Function parameter or member 'p1k' not described in 'phase2' drivers/staging/rtl8723bs/core/rtw_security.c:1937: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst Cc: Larry Finger <Larry.Finger@lwfinger.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Michael Straube <straube.linux@gmail.com> Cc: linux-staging@lists.linux.dev Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20210414181129.1628598-15-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
daa2627c7f
commit
9d65023547
@ -465,8 +465,9 @@ static const unsigned short Sbox1[2][256] = { /* Sbox for hash (can be in ROM)
|
||||
|
||||
/**
|
||||
* phase1() - generate P1K, given TA, TK, IV32
|
||||
* @tk[]: temporal key [128 bits]
|
||||
* @ta[]: transmitter's MAC address [ 48 bits]
|
||||
* @p1k: placeholder for the returned phase 1 key
|
||||
* @tk: temporal key [128 bits]
|
||||
* @ta: transmitter's MAC address [ 48 bits]
|
||||
* @iv32: upper 32 bits of IV [ 32 bits]
|
||||
*
|
||||
* This function only needs to be called every 2**16 packets,
|
||||
@ -498,8 +499,9 @@ static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32)
|
||||
|
||||
/**
|
||||
* phase2() - generate RC4KEY, given TK, P1K, IV16
|
||||
* @tk[]: Temporal key [128 bits]
|
||||
* @p1k[]: Phase 1 output key [ 80 bits]
|
||||
* @rc4key: Placeholder for the returned key
|
||||
* @tk: Temporal key [128 bits]
|
||||
* @p1k: Phase 1 output key [ 80 bits]
|
||||
* @iv16: low 16 bits of IV counter [ 16 bits]
|
||||
*
|
||||
* The value {TA, IV32, IV16} for Phase1/Phase2 must be unique
|
||||
|
Loading…
x
Reference in New Issue
Block a user