summaryrefslogtreecommitdiff
path: root/net/wireless/reg.h
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@rivierawaves.com>2013-11-13 13:54:19 +0400
committerJohannes Berg <johannes.berg@intel.com>2013-11-25 23:52:09 +0400
commitf7d8ad81ca8c447124821e58f876d1aff996c85f (patch)
tree27f1f34298ad2c6143f2919e684bc0b4e44411ef /net/wireless/reg.h
parent7a5e3fa2c81ca2fdc514c61ad90fb4e0b632258c (diff)
downloadlinux-f7d8ad81ca8c447124821e58f876d1aff996c85f.tar.xz
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>
Diffstat (limited to 'net/wireless/reg.h')
0 files changed, 0 insertions, 0 deletions