]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: deduplicate bitrate to rate idx conversion
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 30 Mar 2015 06:51:56 +0000 (09:51 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 30 Mar 2015 12:09:46 +0000 (15:09 +0300)
commit5746eb641795854f3f88ccd936fc693cc3deb344
tree42a3b5ab2f6736ab4fd42a661965605016761456
parent1f0a5afcda8b0dd1f02093a79adaa46d2ec2825c
ath10k: deduplicate bitrate to rate idx conversion

It's possible to derive rate index from bitrate
without any additional mapping structures/logic.

This should have little to none impact on
performance since this is only done for management
frames and the previous approach wasn't
particularly optimized.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/mac.h
drivers/net/wireless/ath/ath10k/wmi.c