diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-08-06 16:22:17 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 22:29:59 +0200 |
commit | ba2ab47129eee76f6f0ef52b4beae30a12cee7f6 (patch) | |
tree | aded96a0180e0e09122f1400a307f8d3d525feb0 /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | mac80211: cleanup mlme state namespace (diff) | |
download | linux-ba2ab47129eee76f6f0ef52b4beae30a12cee7f6.tar.xz linux-ba2ab47129eee76f6f0ef52b4beae30a12cee7f6.zip |
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index ced0a5251766..3fa3d5b006a6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h @@ -804,6 +804,11 @@ struct rt2x00_dev { u32 *rf; /* + * LNA gain + */ + short lna_gain; + + /* * USB Max frame size (for rt2500usb & rt73usb). */ u16 usb_maxpacket; |