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>
This commit is contained in:

committed by
John W. Linville

parent
48c2fc59aa
commit
ba2ab47129
@@ -803,6 +803,11 @@ struct rt2x00_dev {
|
||||
*/
|
||||
u32 *rf;
|
||||
|
||||
/*
|
||||
* LNA gain
|
||||
*/
|
||||
short lna_gain;
|
||||
|
||||
/*
|
||||
* USB Max frame size (for rt2500usb & rt73usb).
|
||||
*/
|
||||
|
Reference in New Issue
Block a user