~ubuntu-branches/ubuntu/vivid/linux-backports-modules-3.2.0/vivid

« back to all changes in this revision

Viewing changes to updates/cw-3.3/drivers/net/wireless/ath/ath9k/ar9002_hw.c

  • Committer: Package Import Robot
  • Author(s): Leann Ogasawara
  • Date: 2012-03-29 09:17:55 UTC
  • Revision ID: package-import@ubuntu.com-20120329091755-1xmgit6xf3ch02r5
Tags: 3.2.0-21.4
* Update to compat-wireless-3.3-2-n 
* Bump ABI for Precise 3.2.0-21.34 

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
                INIT_INI_ARRAY(&ah->iniAddac, ar5416Addac,
181
181
                               ARRAY_SIZE(ar5416Addac), 2);
182
182
        }
 
183
 
 
184
        /* iniAddac needs to be modified for these chips */
 
185
        if (AR_SREV_9160(ah) || !AR_SREV_5416_22_OR_LATER(ah)) {
 
186
                struct ar5416IniArray *addac = &ah->iniAddac;
 
187
                u32 size = sizeof(u32) * addac->ia_rows * addac->ia_columns;
 
188
                u32 *data;
 
189
 
 
190
                data = kmalloc(size, GFP_KERNEL);
 
191
                if (!data)
 
192
                        return;
 
193
 
 
194
                memcpy(data, addac->ia_array, size);
 
195
                addac->ia_array = data;
 
196
 
 
197
                if (!AR_SREV_5416_22_OR_LATER(ah)) {
 
198
                        /* override CLKDRV value */
 
199
                        INI_RA(addac, 31,1) = 0;
 
200
                }
 
201
        }
183
202
}
184
203
 
185
204
/* Support for Japan ch.14 (2484) spread */