网络适配器无法切换到monitormode AR9285无线。
Hi all,大家好,
First of all i'd like to point out that i'm brand new at Linux-systems.首先我想指出的是,我的品牌在Linux的系统的新。 I had my install done yesterday and i'm loving it so far.我有我昨天安装完成,我热爱它至今。
Since last night i've been looking up how to switch my AR9285 Wireless Network Adapter into monitormode.从昨晚开始我一直在寻找如何切换到monitormode我的AR9285无线网络适配器。
I've found the patching commands ;我发现修补命令;
PaulFertser> Get _your_ country code from regd.h, add 32768 and supply as a parameter. PaulFertser>“获取代码从regd.h _your_国家,添加一个参数32768和供应。
fercerpav@gmail.com fercerpav@gmail.com
--- linux-2.6.32-gentoo-r1-orig/drivers/net/wireless/ath/ath9k/main.c 2009-12-03 06:51:21.000000000 +0300 --- linux-2.6.32-gentoo-r1-orig/drivers/net/wireless/ath/ath9k/main.c 2009-12-03 06:51:21.000000000 0300
+++ linux-2.6.32-gentoo-r1/drivers/net/wireless/ath/ath9k/main.c 2010-01-16 02:04:00.000000000 +0300 + + + linux-2.6.32-gentoo-r1/drivers/net/wireless/ath/ath9k/main.c 2010-01-16 02:04:00.000000000 0300
@@ -28,6 +28,11 @@ @ @ -28,6 +28,11 @ @
module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444); module_param_named(nohwcrypt,modparam_nohwcrypt,诠释,0444);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption"); MODULE_PARM_DESC(nohwcrypt,“禁用硬件加密”);
+static int modparam_override_eeprom_regdomain = -1; +静态诠释modparam_override_eeprom_regdomain = -1;
+module_param_named(override_eeprom_regdomain, + module_param_named(override_eeprom_regdomain,
+ modparam_override_eeprom_regdomain, int, S_IRUGO); + modparam_override_eeprom_regdomain,诠释,S_IRUGO);
+MODULE_PARM_DESC(override_eeprom_regdomain, "Override regdomain hardcoded in EEPROM with this value (DANGEROUS)."); + MODULE_PARM_DESC(override_eeprom_regdomain,“覆盖regdomain EEPROM的硬编码在此值(危险).");
+ +
/* We use the hw_value as an index into our private channel structure */ / * *我们用我们的专用通道结构的hw_value为指标到/
#define CHAN2G(_freq, _idx) { \ #定义CHAN2G(_freq,_idx){\
@@ -1588,6 +1593,14 @@ @ @ -1588,6 +1593,14 @ @
if (error != 0) 如果(错误!= 0)
return error; 返回错误;
+ if (modparam_override_eeprom_regdomain != -1) { +如果(modparam_override_eeprom_regdomain!= -1){
+ printk(KERN_ERR "ath9k: DANGER! You're overriding EEPROM-defined regulatory domain.\n"); +的printk(KERN_ERR“ath9k:你这里太危险了压倒一切的EEPROM的明确的监管领域。!\ ñ”);
+ printk(KERN_ERR "ath9k: Your card was not certified to operate on the domain you choosed.\n"); +的printk(KERN_ERR“ath9k:卡是没有资格去操作的域的选用。您的\ n”);
+ printk(KERN_ERR "ath9k: This might result in a violation of your local regulatory rules.\n"); +的printk(KERN_ERR“ath9k:这可能导致违反规则的地方法规ñ。\”);
+ printk(KERN_ERR "ath9k: Do not ever do that unless you really know what you do!\n"); +的printk(KERN_ERR“ath9k:永远不要做,除非你真的知道你做了什么N不\”);
+ sc->common.regulatory.current_rd = modparam_override_eeprom_regdomain; +的SC -> common.regulatory.current_rd = modparam_override_eeprom_regdomain;
+ } +}
+ +
/* get mac address from hardware and set in mac80211 */ / *获取硬件和设置mac80211 MAC地址从/
SET_IEEE80211_PERM_ADDR(hw, sc->sc_ah->macaddr); SET_IEEE80211_PERM_ADDR(硬件,第SC -> sc_ah -> macaddr把);
but what i can't find so far is how to get this patch actually changing my driver ?但我不能找到这么远是如何获得这个补丁确实改变了我的驱动程序? :/ :/
Pls help me.请帮助我。 Keep in mind, total Linux-newb here.记住,总Linux的国家教育福利局放在这里。
ty,泰,
Sfekke Sfekke
以下是英语
Can't switch AR9285 Wireless Network Adapter into monitormode.
Hi all,
First of all i'd like to point out that i'm brand new at Linux-systems. I had my install done yesterday and i'm loving it so far.
Since last night i've been looking up how to switch my AR9285 Wireless Network Adapter into monitormode.
I've found the patching commands ;
PaulFertser> Get _your_ country code from regd.h, add 32768 and supply as a parameter.
fercerpav@gmail.com
--- linux-2.6.32-gentoo-r1-orig/drivers/net/wireless/ath/ath9k/main.c 2009-12-03 06:51:21.000000000 +0300
+++ linux-2.6.32-gentoo-r1/drivers/net/wireless/ath/ath9k/main.c 2010-01-16 02:04:00.000000000 +0300
@@ -28,6 +28,11 @@
module_param_named(nohwcrypt, modparam_nohwcrypt, int, 0444);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption");
+static int modparam_override_eeprom_regdomain = -1;
+module_param_named(override_eeprom_regdomain,
+ modparam_override_eeprom_regdomain, int, S_IRUGO);
+MODULE_PARM_DESC(override_eeprom_regdomain, "Override regdomain hardcoded in EEPROM with this value (DANGEROUS).");
+
/* We use the hw_value as an index into our private channel structure */
#define CHAN2G(_freq, _idx) { \
@@ -1588,6 +1593,14 @@
if (error != 0)
return error;
+ if (modparam_override_eeprom_regdomain != -1) {
+ printk(KERN_ERR "ath9k: DANGER! You're overriding EEPROM-defined regulatory domain.\n");
+ printk(KERN_ERR "ath9k: Your card was not certified to operate on the domain you choosed.\n");
+ printk(KERN_ERR "ath9k: This might result in a violation of your local regulatory rules.\n");
+ printk(KERN_ERR "ath9k: Do not ever do that unless you really know what you do!\n");
+ sc->common.regulatory.current_rd = modparam_override_eeprom_regdomain;
+ }
+
/* get mac address from hardware and set in mac80211 */
SET_IEEE80211_PERM_ADDR(hw, sc->sc_ah->macaddr);
but what i can't find so far is how to get this patch actually changing my driver ? :/
Pls help me. Keep in mind, total Linux-newb here.
ty,
Sfekke
Sfekke is offline
来源
http://ubuntuforums.org/showthread.php?t=1609591