~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to drivers/net/wireless/ath/ath5k/rfgain.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
/* Initial RF Gain settings for RF5111 */
32
32
static const struct ath5k_ini_rfgain rfgain_5111[] = {
33
 
        /*                            5Ghz      2Ghz    */
 
33
        /*                            5GHz      2GHz    */
34
34
        { AR5K_RF_GAIN(0),      { 0x000001a9, 0x00000000 } },
35
35
        { AR5K_RF_GAIN(1),      { 0x000001e9, 0x00000040 } },
36
36
        { AR5K_RF_GAIN(2),      { 0x00000029, 0x00000080 } },
99
99
 
100
100
/* Initial RF Gain settings for RF5112 */
101
101
static const struct ath5k_ini_rfgain rfgain_5112[] = {
102
 
        /*                            5Ghz      2Ghz    */
 
102
        /*                            5GHz      2GHz    */
103
103
        { AR5K_RF_GAIN(0),      { 0x00000007, 0x00000007 } },
104
104
        { AR5K_RF_GAIN(1),      { 0x00000047, 0x00000047 } },
105
105
        { AR5K_RF_GAIN(2),      { 0x00000087, 0x00000087 } },
305
305
 
306
306
/* Initial RF Gain settings for RF5413 */
307
307
static const struct ath5k_ini_rfgain rfgain_5413[] = {
308
 
        /*                            5Ghz      2Ghz    */
 
308
        /*                            5GHz      2GHz    */
309
309
        { AR5K_RF_GAIN(0),      { 0x00000000, 0x00000000 } },
310
310
        { AR5K_RF_GAIN(1),      { 0x00000040, 0x00000040 } },
311
311
        { AR5K_RF_GAIN(2),      { 0x00000080, 0x00000080 } },
452
452
 
453
453
/* Check if our current measurement is inside our
454
454
 * current variable attenuation window */
455
 
#define AR5K_GAIN_CHECK_ADJUST(_g)              \
 
455
#define AR5K_GAIN_CHECK_ADJUST(_g)              \
456
456
        ((_g)->g_current <= (_g)->g_low || (_g)->g_current >= (_g)->g_high)
457
457
 
458
458
struct ath5k_gain_opt_step {