seting-wifi
/ 1
Document Sample


Configuring the OS to use MadWiFi Remove the Ath5K module from the kernel by adding the following to the bottom of /etc/modprobe.d/blacklist.conf: # Block ath5k blacklist ath9k blacklist ath5k Hash out the blacklisting of the ath_pci driver in /etc/modprobe.d/blacklist-ath_pci.conf. The content of this should be: # For some Atheros 5K RF MACs, the madwifi driver loads buts fails to # correctly initialize the hardware, leaving it in a state from # which ath5k cannot recover. To prevent this condition, stop # madwifi from loading by default. Use Jockey to select one driver # or the other. (Ubuntu: #315056, #323830) # removed by Tony on 2-14-11 to enable madwifi driver # blacklist ath_pci Create file /etc/modprobe.d/madwifi.conf with the following: options ath_pci autocreate=adhoc Add the following to the bottom of /etc/modules (this adds the MadWiFi module to the Linux kernel): ath_pci Remove the persistent rules for the network interface: $ sudo rm /etc/udev/rules.d/70-persistent-net.rules Edit /etc/network/interfaces. Change the network settings to be the following. Note the change from "wlan0" to "ath0". Also change the IP address to be your robot's. # Set the wireless NIC to auto start in ad-hoc mode auto ath0 iface ath0 inet static address 10.11.12.20 netmask 255.255.255.0 wireless-essid pharos madwifi-mode ad-hoc madwifi-base wifi0 wireless-channel 1 wireless-txpower 1dBm wireless-key off Reboot the computer and the wireless interface should now be using the MadWiFi drivers.
Get documents about "