📄 readme.svn-base
字号:
So here is how it works:First compile...gcc ath_info.c -o ath_infothen find card's physical addresslspci -v02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01) Subsystem: Fujitsu Limited. Unknown device 1234 Flags: bus master, medium devsel, latency 168, IRQ 23 Memory at c2000000 (32-bit, non-prefetchable) [size=64K] Capabilities: [44] Power Management version 2address here is 0xc2000000load madwifi-ng or madwifi-old if not already loaded (be sure theinterface is down!)modprobe ath_pciORcall:setpci -s 02:02.0 command=0x41f cache_line_size=0x10to enable access to the PCI device.and we run the thing..../ath_info 0xc2000000In order to change the regdomain to 0, call:./ath_info -w 0xc2000000 regdomain 0to change any PCI ID value, say:./ath_info -w 0xc2000000 <name> Xwith <name> ::= pci_dev_id | pci_vendor_id | pci_class | pci_subsys_dev_id | pci_subsys_vendor_idWith newer chipsets (>= AR5004x, i.e. MAC >= AR5213), Atheros introducedwrite protection on the EEPROM. On a GIGABYTE GN-WI01HT you can setGPIO 4 to low to be able to write the EEPROM. This depends highly onthe PCB layout, so there may be different GPIO used. This programcurrently sets GPIO 4 to low for a MAC >= AR5213, but you can overridethis with the -g option:./ath_info -g 5:0 -w 0xc2000000 regdomain Xwould set GPIO 5 to low (and wouldn't touch GPIO 4). "-g" can be givenseveral times.The write function is currently not tested with 5210 devices.Use at your own risk, entering a false device address will have reallynasty results! Writing wrong values to the PCI ID fields may preventthe driver from detecting the card!Transmitting on illegal frequencies may violate state laws. Stick tothe local regulations!DISCLAIMER:The authors are in no case responsible for damaged hardware or violationof local laws by operating modified hardware.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -