|
@@ -422,10 +422,9 @@ init_sample_table(struct minstrel_sta_info *mi)
|
|
memset(mi->sample_table, 0xff, SAMPLE_COLUMNS * mi->n_rates);
|
|
memset(mi->sample_table, 0xff, SAMPLE_COLUMNS * mi->n_rates);
|
|
|
|
|
|
for (col = 0; col < SAMPLE_COLUMNS; col++) {
|
|
for (col = 0; col < SAMPLE_COLUMNS; col++) {
|
|
|
|
+ prandom_bytes(rnd, sizeof(rnd));
|
|
for (i = 0; i < mi->n_rates; i++) {
|
|
for (i = 0; i < mi->n_rates; i++) {
|
|
- get_random_bytes(rnd, sizeof(rnd));
|
|
|
|
new_idx = (i + rnd[i & 7]) % mi->n_rates;
|
|
new_idx = (i + rnd[i & 7]) % mi->n_rates;
|
|
-
|
|
|
|
while (SAMPLE_TBL(mi, new_idx, col) != 0xff)
|
|
while (SAMPLE_TBL(mi, new_idx, col) != 0xff)
|
|
new_idx = (new_idx + 1) % mi->n_rates;
|
|
new_idx = (new_idx + 1) % mi->n_rates;
|
|
|
|
|