Karl Beldan f7d8ad81ca mac80211: minstrels: spare numerous useless calls to get_random_bytes
ATM, only the first array value returned by get_random_bytes is used.
This change moves the call to get_random_bytes from the nested loop it
is in to its parent.
While at it, replace get_random_bytes with prandom_bytes since PRNs are
way enough for the selection process.
After this, minstrel_ht reclaims 80 PR-bytes instead of 640 R-bytes.

minstrels use sample tables to probe different rates in a randomized
manner.
minstrel_ht inits one single sample table upon registration (during
subsys_initcalls) and minstrel uses one per STA addition in minstrel.

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-11-25 20:52:09 +01:00
..
2011-07-08 11:11:20 -04:00
2013-11-25 20:51:58 +01:00
2013-10-01 12:16:51 +02:00
2009-07-10 15:01:49 -04:00
2013-10-28 15:05:11 +01:00
2013-11-25 20:51:58 +01:00
2013-02-04 18:57:47 +01:00
2013-02-15 15:46:37 +01:00
2013-11-25 20:51:58 +01:00
2013-11-25 20:51:58 +01:00
2013-10-15 15:16:29 +02:00
2011-03-31 11:26:23 -03:00
2012-06-24 11:33:18 +02:00
2012-03-13 14:54:16 -04:00
2013-02-04 18:57:47 +01:00
2012-06-20 17:35:22 +02:00