]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Move lna_gain calculation to config() callback
authorIvo van Doorn <ivdoorn@gmail.com>
Wed, 6 Aug 2008 14:22:17 +0000 (16:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Aug 2008 20:29:59 +0000 (16:29 -0400)
commitf2d366f8b11b7da105e65ee0494f3a5e78920af8
treeaded96a0180e0e09122f1400a307f8d3d525feb0
parent6dda66f8e1f94efacb8184df35847d380075b9f3
rt2x00: Move lna_gain calculation to config() callback

We can optimize lna calculation in IRQ context by
calculating most of the value during the config() callback
when most of the value is actually influenced.

This will be required later by rt2800pci and rt2800usb as
well, since they need the lna_gain value during config().

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c