nexmon – Blame information for rev 1
?pathlinks?
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/ath9k/main.c 2009-12-03 06:51:21.000000000 +0300 |
||
4 | +++ linux-2.6.32-gentoo-r1/drivers/net/wireless/ath/ath9k/main.c 2010-01-16 02:04:00.000000000 +0300 |
||
5 | @@ -28,6 +28,11 @@ |
||
6 | module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444); |
||
7 | MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption"); |
||
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 | /* We use the hw_value as an index into our private channel structure */ |
||
15 | |||
16 | #define CHAN2G(_freq, _idx) { \ |
||
17 | @@ -1588,6 +1593,14 @@ |
||
18 | if (error != 0) |
||
19 | return error; |
||
20 | |||
21 | + if (modparam_override_eeprom_regdomain != -1) { |
||
22 | + printk(KERN_ERR "ath9k: DANGER! You're overriding EEPROM-defined regulatory domain.\n"); |
||
23 | + printk(KERN_ERR "ath9k: Your card was not certified to operate on the domain you choosed.\n"); |
||
24 | + printk(KERN_ERR "ath9k: This might result in a violation of your local regulatory rules.\n"); |
||
25 | + printk(KERN_ERR "ath9k: Do not ever do that unless you really know what you do!\n"); |
||
26 | + sc->common.regulatory.current_rd = modparam_override_eeprom_regdomain; |
||
27 | + } |
||
28 | + |
||
29 | /* get mac address from hardware and set in mac80211 */ |
||
30 | |||
31 | SET_IEEE80211_PERM_ADDR(hw, sc->sc_ah->macaddr); |