** Summary changed:
- D-Link DWL-G520 (Atheros chipset) can not be configured from
/etc/network/interfaces
+ D-Link DWL-G520 (Atheros chipset) hangs system with incorrect
/etc/network/interfaces
** Description changed:
Hello,
I am trying to configure atheros-based wireless adapter D-Link DWL-G520 in
Ubuntu 8.04.1 as an access point.
It can be brought up using sequence like
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode master
ifconfig ath0 192.168.1.2 up
iwconfig ath0 essid "Desktop_computer"
from command line.
However, when I try to put this in /etc/network/interfaces, the card behaves
strangely. Following instructions from
http://madwifi.org/wiki/UserDocs/SimpleAccessPoint I tried to up ath0 at start
time:
My /etc/network/interfaces:
auto lo
iface lo inet loopback
iface eth0 inet static
address xx.xx.xx.xx
netmask xx.xx.xx.xx
gateway xx.xx.xx.xx
auto eth0
iface ath0 inet static
pre-up wlanconfig ath0 destroy || true
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
post-down wlanconfig ath0 destroy
wireless-mode master
wireless-channel 11
wireless-essid my_ssid
address 192.168.0.2
- gateway 192.168.0.1
netmask 255.255.255.0
auto ath0
Then after "sudo /etc/init.d/networking restart" or during reboot computer
hangs.
If I comment two lines
# wireless-mode master
# wireless-channel 11
, it does not hang. However,
1) "route" stops working: routing tables clean and "route add ... " gives
an error "SIOCADDRT: no such process" (maybe this is not important and can be
fixed independently)
2) Interface is brought up in managed mode and with void ESSID.
+
+ UPD. Setting
+ options ath_pci autocreate=ap
+ in /etc/modprobe.d/madwifi
+ and
+ madwifi-base wifi0
+ madwifi-mode master
+ wireless-essid my_ssid
+ in /etc/network/interfaces works well.
+ However, I do confirm hangup with incorrect interfaces file.
** Description changed:
Hello,
I am trying to configure atheros-based wireless adapter D-Link DWL-G520 in
Ubuntu 8.04.1 as an access point.
It can be brought up using sequence like
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode master
ifconfig ath0 192.168.1.2 up
iwconfig ath0 essid "Desktop_computer"
from command line.
However, when I try to put this in /etc/network/interfaces, the card behaves
strangely. Following instructions from
http://madwifi.org/wiki/UserDocs/SimpleAccessPoint I tried to up ath0 at start
time:
My /etc/network/interfaces:
auto lo
iface lo inet loopback
iface eth0 inet static
address xx.xx.xx.xx
netmask xx.xx.xx.xx
gateway xx.xx.xx.xx
auto eth0
iface ath0 inet static
pre-up wlanconfig ath0 destroy || true
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
post-down wlanconfig ath0 destroy
wireless-mode master
wireless-channel 11
wireless-essid my_ssid
address 192.168.0.2
netmask 255.255.255.0
auto ath0
Then after "sudo /etc/init.d/networking restart" or during reboot computer
hangs.
If I comment two lines
# wireless-mode master
# wireless-channel 11
, it does not hang. However,
1) "route" stops working: routing tables clean and "route add ... " gives
an error "SIOCADDRT: no such process" (maybe this is not important and can be
fixed independently)
2) Interface is brought up in managed mode and with void ESSID.
UPD. Setting
options ath_pci autocreate=ap
in /etc/modprobe.d/madwifi
and
madwifi-base wifi0
- madwifi-mode master
+ madwifi-mode master
wireless-essid my_ssid
in /etc/network/interfaces works well.
However, I do confirm hangup with incorrect interfaces file.
--
D-Link DWL-G520 (Atheros chipset) hangs system with incorrect
/etc/network/interfaces
https://bugs.launchpad.net/bugs/245968
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs