linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ath9k: change entropy formula for easier understanding
@ 2016-08-09  7:02 miaoqing
  2016-08-09  7:02 ` [PATCH 2/2] ath9k: disable RNG by default miaoqing
       [not found] ` <1470726147-30095-1-git-send-email-miaoqing-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
  0 siblings, 2 replies; 32+ messages in thread
From: miaoqing @ 2016-08-09  7:02 UTC (permalink / raw)
  To: kvalo
  Cc: linux-wireless, ath9k-devel, linux-crypto, smueller, jason,
	pouyans, Miaoqing Pan

From: Miaoqing Pan <miaoqing@codeaurora.org>

The quality of ADC entropy is 10 bits of min-entropy for
a 32-bit value, change '(((x) * 8 * 320) >> 10)' to
'(((x) * 8 * 10) >> 5)' for easier understanding.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
---
 drivers/net/wireless/ath/ath9k/rng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/rng.c b/drivers/net/wireless/ath/ath9k/rng.c
index d38e50f..568b1c6 100644
--- a/drivers/net/wireless/ath/ath9k/rng.c
+++ b/drivers/net/wireless/ath/ath9k/rng.c
@@ -22,7 +22,7 @@
 #include "ar9003_phy.h"
 
 #define ATH9K_RNG_BUF_SIZE	320
-#define ATH9K_RNG_ENTROPY(x)	(((x) * 8 * 320) >> 10) /* quality: 320/1024 */
+#define ATH9K_RNG_ENTROPY(x)	(((x) * 8 * 10) >> 5) /* quality: 10/32 */
 
 static int ath9k_rng_data_read(struct ath_softc *sc, u32 *buf, u32 buf_size)
 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2016-10-13 14:23 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09  7:02 [PATCH 1/2] ath9k: change entropy formula for easier understanding miaoqing
2016-08-09  7:02 ` [PATCH 2/2] ath9k: disable RNG by default miaoqing
     [not found]   ` <1470726147-30095-2-git-send-email-miaoqing-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-08-09  7:14     ` Stephan Mueller
2016-08-09  7:35       ` Pan, Miaoqing
2016-08-09  8:07         ` Stephan Mueller
2016-08-09  8:58           ` Herbert Xu
2016-08-09  9:02             ` Stephan Mueller
     [not found]               ` <2569442.q63FVBJjUH-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2016-08-09  9:17                 ` Herbert Xu
     [not found]                   ` <20160809091755.GA6370-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q@public.gmane.org>
2016-08-09  9:37                     ` Stephan Mueller
2016-08-09  9:46                       ` Herbert Xu
2016-08-09  9:56                         ` Stephan Mueller
2016-08-09  9:56                           ` Herbert Xu
2016-08-09 10:06                             ` Stephan Mueller
     [not found]                               ` <11316081.S4pPZmZMrt-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2016-08-09 10:24                                 ` Henrique de Moraes Holschuh
2016-08-09 17:51                                   ` Jason Cooper
     [not found]                       ` <1645997.7cVzaEi3NG-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2016-08-10  2:35                         ` Pan, Miaoqing
     [not found]                           ` <1470796501856.53342-Rm6X0d1/PG5y9aJCnZT0Uw@public.gmane.org>
2016-08-10  5:29                             ` Stephan Mueller
     [not found]                               ` <1543667.vXsZDTRgbm-jJGQKZiSfeo1haGO/jJMPxvVK+yQ3ZXh@public.gmane.org>
2016-08-10  6:04                                 ` Pan, Miaoqing
2016-08-10  6:25                                   ` Stephan Mueller
     [not found]                                     ` <14565196.xaXq375WQg-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2016-08-10  6:46                                       ` Pan, Miaoqing
2016-08-10  6:51                                         ` Stephan Mueller
2016-08-10  7:15                                           ` Pan, Miaoqing
     [not found]                                             ` <c0951e085764481d8d85637734e2e14b-fhY3XlRGNI1pWAYlkNb9jaRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2016-08-10  7:27                                               ` Stephan Mueller
     [not found]                                                 ` <4321952.1nMxxDi7Wz-jJGQKZiSfeo1haGO/jJMPxvVK+yQ3ZXh@public.gmane.org>
2016-08-10  7:40                                                   ` Pan, Miaoqing
     [not found]                                                     ` <1e8e88ad7de64c528f08c75ff9176ab8-fhY3XlRGNI1pWAYlkNb9jaRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2016-08-10  7:43                                                       ` Pan, Miaoqing
     [not found]                                                         ` <389c3c1fdde2447aacf31a8b4aadfc08-fhY3XlRGNI1pWAYlkNb9jaRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2016-08-10 13:24                                                           ` Jason Cooper
2016-08-11  2:54                                                             ` miaoqing
     [not found]                                                               ` <14a3879458f3bfc36068c2e8294ca448-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-08-11 13:14                                                                 ` Jason Cooper
2016-08-09 17:48     ` Jason Cooper
2016-09-28 10:00   ` [2/2] " Kalle Valo
     [not found] ` <1470726147-30095-1-git-send-email-miaoqing-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-09-27 14:53   ` [1/2] ath9k: change entropy formula for easier understanding Kalle Valo
2016-10-13 14:23   ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).