Originally Posted by
computer_freak_8
Okay, I played around with MadWifi and "sudo modprobe ath_pci" and got it working - in a way.
Now, whenever I issue the command "sudo /etc/init.d/networking restart", my whole system locks up about five seconds after executing with three or four errors. Then I have to do a hard reset.
Here is the latest version of my "/etc/network/interfaces" file that caused a lockup:
Code:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet manual
auto ppp0
iface ppp0 inet manual
auto ath0
iface ath0 inet manual
# pre-up modprobe ath_pci
pre-up wlanconfig ath0 destroy
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode master
# post-down wlanconfig ath0 destroy
wireless-mode master
wireless-channel 7
wireless-essid UnsecuredByJBatWH
address 221.112.5.150
gateway 192.168.0.1
netmask 255.255.255.0
#iface br0 inet manual
# bridge_ports ppp0 ath0
iface br0 inet manual
bridge_ports ppp0 ath0
# pre-up ifconfig ppp0 0.0.0.0 up
# pre-up ifconfig ath0 0.0.0.0 up
# pre-up iwconfig ath0 mode master
pre-up brctl addbr br0
pre-up brctl addif ppp0
pre-up brctl addif ath0
# post-down ifconfig ppp0 0.0.0.0 down
# post-down ifconfig ath0 0.0.0.0 down
# post-down brctl delif br0 ppp0
# post-down brctl delif br0 ath0
# post-down brctl delbr br0
Note: All of the errors are about the "ath0" device.
Now I'm going to try:
Code:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet manual
auto ppp0
iface ppp0 inet manual
auto ath0
iface ath0 inet manual
wireless-mode master
wireless-channel 7
wireless-essid UnsecuredByJBatWH
address 221.112.5.150
gateway 192.168.0.1
netmask 255.255.255.0
#iface br0 inet manual
# bridge_ports ppp0 ath0
iface br0 inet manual
bridge_ports ppp0 ath0
# pre-up ifconfig ppp0 0.0.0.0 up
# pre-up ifconfig ath0 0.0.0.0 up
# pre-up iwconfig ath0 mode master
pre-up brctl addbr br0
pre-up brctl addif ppp0
pre-up brctl addif ath0
# post-down ifconfig ppp0 0.0.0.0 down
# post-down ifconfig ath0 0.0.0.0 down
# post-down brctl delif br0 ppp0
# post-down brctl delif br0 ath0
# post-down brctl delbr br0
I assume that the 192.168.0.0 segment is available on another one of your interfaces.
/etc/modprobe.d/options -- add this:
Code:
options ath_pci autocreate=ap
/etc/network/interfaces :
Code:
iface ath0 inet static
wireless-essid UnsecuredByJBatWH
address 221.112.5.150
gateway 192.168.0.1
netmask 255.255.255.0
post-up /etc/tkip
auto ath0
/etc/tkip :
Code:
#!/bin/sh
iwconfig ath0 essid UnsecuredByJBatWH
iwpriv ath0 mode 3
ifconfig ath0 221.112.5.150 up
hostapd -B /etc/hostapd.conf
/etc/hostapd.conf :
Code:
interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ssid=UnsecuredByJBatWH
eapol_key_index_workaround=0
wpa=1
wpa_passphrase=just a passphrase for anyone to have a crack at
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
Bookmarks