nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 PaulFertser> Get _your_ country code from regd.h, add 32768 and supply as a parameter.
2 fercerpav@gmail.com
3 --- linux-2.6.32-gentoo-r1-orig/drivers/net/wireless/ath/ath5k/base.c 2009-12-03 06:51:21.000000000 +0300
4 +++ linux-2.6.32-gentoo-r1/drivers/net/wireless/ath/ath5k/base.c 2010-01-16 00:02:51.000000000 +0300
5 @@ -68,6 +68,11 @@
6 module_param_named(all_channels, modparam_all_channels, bool, S_IRUGO);
7 MODULE_PARM_DESC(all_channels, "Expose all channels the device can use.");
8  
9 +static int modparam_override_eeprom_regdomain = -1;
10 +module_param_named(override_eeprom_regdomain,
11 + modparam_override_eeprom_regdomain, int, S_IRUGO);
12 +MODULE_PARM_DESC(override_eeprom_regdomain, "Override regdomain hardcoded in EEPROM with this value (DANGEROUS).");
13 +
14  
15 /******************\
16 * Internal defines *
17 @@ -572,6 +577,15 @@
18 goto err_irq;
19 }
20  
21 + if (modparam_override_eeprom_regdomain != -1) {
22 + ATH5K_ERR(sc, "DANGER! You're overriding EEPROM-defined regulatory domain.\n");
23 + ATH5K_ERR(sc, "Your card was not certified to operate on the domain you choosed.\n");
24 + ATH5K_ERR(sc, "This might result in a violation of your local regulatory rules.\n");
25 + ATH5K_ERR(sc, "Do not ever do that unless you really know what you do!\n");
26 + sc->ah->ah_capabilities.cap_eeprom.ee_regdomain =
27 + modparam_override_eeprom_regdomain;
28 + }
29 +
30 /* set up multi-rate retry capabilities */
31 if (sc->ah->ah_version == AR5K_AR5212) {
32 hw->max_rates = 4;
33