You are not logged in.

#1 2009-03-15 18:42:59

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Atheros AR5001+ and Intel 3945ABG [Golan].

I'm trying to do an ad-hoc network to share Internet under PPP (usb modem ZTE MF 622) between a desktop and a laptop.
The Desktop is connected to Internet under 3G modem using pppd or wvdial.
The Desktop is the card: Atheros AR5001X + Wireless.
The laptop is the card: Intel PRO / Wireless 3945ABG [Golan].

In Windows XP (Desktop) <-> Windows Vista (Laptop) everything works perfect, but with Linux can not connect at all, nor with the Arch (Laptop) <-> Windows XP (Desktop) or to the Arch (Desktop) <-> Windows Vista (Laptop).

I tried many drivers and documentation on the Internet, as the following:
http://wiki.archlinux.org/index.php/Wireless_Setup
http://wiki.archlinux.org/index.php/Sha … _interface
http://wiki.archlinux.org/index.php/WEP

And many others, but still do not understand very well how to run the scripts and the system of wireless networks in the Arch.

The error is that the Desktop is as follows:
:: Starting Network [BUSY]
Error for wireless request "Set Mode" (8B06):
     SET failed on device ATH0; Invalid argument.
> Could not associate ATH0 - try increasing WIRELESS_TIMEOUT and network check
WEP is or has no security

Already in the laptop does not appear any error, but it does not connect.

Here settings for Desktop:

[root@c3po ~]:# cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pt_BR.utf8"
HARDWARECLOCK="local"
USEDIRECTISA="no"
TIMEZONE="America/Campo_Grande"
KEYMAP="br-abnt2"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(fuse ath5k)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="c3po"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

# WIRELESS
#ath0="dhcp"
ath0="ath0 192.168.0.10 netmask 255.255.255.0"
wlan_ath0="ath0 essid Fazenda mode ad-hoc key s:num_conto" # Unencrypted

# Wired
#eth0="dhcp"
#eth0="eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="eth0 192.168.0.1 netmask 255.255.255.0"

INTERFACES=(ath0 !eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.10"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(main wireless1)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng iptables network netfs dnsmasq hal crond gpm sshd ntpd)

[root@c3po ~]# cat /etc/netword.d/wireless1
CONNECTION="wireless"
DESCRIPTION="A wep encrypted wireless connection using static ip"
INTERFACE=ath0
SCAN="yes"
SECURITY="WEP"
ESSID="Fazenda"
KEY="xxxxx"
IP="static"
IWOPTS="mode ad-hoc"
IFOPTS="192.168.0.20 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY="192.168.0.10"
DNS1="200.169.118.22"
DNS2="200.169.119.22"

[root@c3po ~]# lspci | grep -i wireless
01:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)

[root@c3po ~]# pacman -Qs wireless
local/madwifi 0.9.4.3844-3
    Madwifi drivers for Atheros wireless chipsets. For stock arch 2.6 kernel
local/madwifi-utils 0.9.4.3844-1
    Userspace tools of madwifi drivers for Atheros wireless chipsets.
local/wireless_tools 29-2
    Wireless Tools
local/wlan-ng26-utils 0.2.9-1
    Wireless Lan userspace tools.
local/wpa_supplicant 0.5.11-1 (base)
    A utility providing key negotiation for WPA wireless networks


[root@c3po ~]# lsmod 
Module                  Size  Used by
ipv6                  309952  18 
ipt_MASQUERADE          5376  1 
iptable_nat             8452  1 
nf_nat                 22292  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4      17688  3 iptable_nat,nf_nat
nf_conntrack           69136  4 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4          4224  1 nf_conntrack_ipv4
ip_tables              20880  1 iptable_nat
x_tables               21896  3 ipt_MASQUERADE,iptable_nat,ip_tables
usbhid                 41536  0 
hid                    49856  1 usbhid
ath5k                 108544  0 
led_class               6280  1 ath5k
wlan_scan_sta          16768  0 
ath_rate_sample        16896  1 
snd_seq_oss            35584  0 
snd_seq_midi_event      9344  1 snd_seq_oss
snd_seq                58336  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          9364  2 snd_seq_oss,snd_seq
snd_pcm_oss            45440  0 
snd_mixer_oss          18944  1 snd_pcm_oss
snd_hda_intel         531252  0 
ath_pci               251456  0 
wlan                  242464  4 wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal               278144  3 ath_rate_sample,ath_pci
iTCO_wdt               15184  0 
ppdev                  10504  0 
pcspkr                  4864  0 
iTCO_vendor_support     5636  1 iTCO_wdt
lp                     13636  0 
sg                     31840  0 
snd_pcm                82952  2 snd_pcm_oss,snd_hda_intel
snd_timer              24720  2 snd_seq,snd_pcm
snd_page_alloc         11792  2 snd_hda_intel,snd_pcm
snd_hwdep              10632  1 snd_hda_intel
snd                    65096  9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
uhci_hcd               27552  0 
i2c_i801               12444  0 
i2c_core               26144  1 i2c_i801
ehci_hcd               41356  0 
parport_pc             42696  1 
parport                39216  3 ppdev,lp,parport_pc
intel_agp              33136  0 
soundcore               9632  1 snd
thermal                20896  0 
processor              46648  1 thermal
evdev                  13984  3 
fan                     7304  0 
button                  9504  0 
battery                14600  0 
ac                      7176  0 
fuse                   59584  2 
mac80211              182960  1 ath5k
cfg80211               36896  2 ath5k,mac80211
usbserial              37744  0 
usbcore               160432  5 usbhid,uhci_hcd,ehci_hcd,usbserial
atl2                   31128  0 
8139too                29700  0 
mii                     7296  1 8139too
rtc_cmos               14040  0 
rtc_core               21060  1 rtc_cmos
rtc_lib                 4992  1 rtc_core
ext4                  233528  2 
mbcache                10244  1 ext4
jbd2                   65840  1 ext4
crc16                   4096  1 ext4
sr_mod                 18884  0 
sd_mod                 29096  5 
cdrom                  39080  1 sr_mod
ata_piix               27652  4 
ata_generic             8068  0 
pata_acpi               7296  0 
libata                176224  3 ata_piix,ata_generic,pata_acpi
scsi_mod              119256  4 sg,sr_mod,sd_mod,libata

[root@c3po ~]# iwconfig
ath0      IEEE 802.11b  ESSID:"Wireless"  Nickname:""
          Mode:Managed  Channel:0  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power:0 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
(num sei porque não apareceu os outros com o comando iwconfig >> iwconfig.txt, lá aparece)


[root@c3po ~]# ifconfig -a
ath0      Link encap:Ethernet  HWaddr 00:1D:0F:D9:AD:11  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:1E:8C:95:64:43  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:ddec0000-ddf00000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wifi0     Link encap:UNSPEC  HWaddr 00-1D-0F-D9-AD-11-00-00-00-00-00-00-00-00-00-00  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:280 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:17

And here settings for Laptop:

[root@r2d2 ~]:# cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pt_BR.utf8"
HARDWARECLOCK="local"
USEDIRECTISA="no"
TIMEZONE="America/Campo_Grande"
KEYMAP="br-abnt2"
CONSOLEFONT="lat0-16"
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(sky2 fuse iwl3945 !mac80211 !pcspkr !snd_pcsp)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="r2d2"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

# Wireless
#wlan0="dhcp"
wlan0="wlan0 192.168.0.20 netmask 255.255.255.0"
#wlan_wlan0="wlan0 essid Wireless"

# Wired
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="eth0 192.168.0.2 netmask 255.255.255.0"

INTERFACES=(wlan0 !eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.10" 
ROUTES=(gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(wireless2)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network !netfs alsa acpid crond gpm sshd)

[root@r2d2 ~]# cat /etc/netword.d/wireless2
CONNECTION="wireless"
DESCRIPTION="A wep encrypted wireless connection using static ip"
INTERFACE=wlan0
SCAN="yes"
SECURITY="WEP"
ESSID="Fazenda"
KEY="xxxxx"
IP="static"
#IWOPTS="mode ad-hoc"
IFOPTS="192.168.0.20 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY="192.168.0.10"
DNS1="200.169.118.22"
DNS2="200.169.119.22"

[root@r2d2 ~]# lspci | grep -i Wireless
01:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

[root@r2d2 ~]# pacman -Qs wireless
local/iwlwifi-3945-ucode 15.28.2.8-1
    Intel wireless firmware for IPW3945 (iwlwifi driver)
local/wireless_tools 29-2
    Wireless Tools
local/wpa_supplicant 0.5.11-1 (base)
    A utility providing key negotiation for WPA wireless networks

[root@r2d2 ~]# lsmod
Module                  Size  Used by
usbhid                 41536  0 
hid                    49856  1 usbhid
joydev                 14208  0 
usb_storage           110272  0 
uvcvideo               62344  0 
compat_ioctl32         11520  1 uvcvideo
videodev               37888  2 uvcvideo,compat_ioctl32
v4l1_compat            17284  2 uvcvideo,videodev
snd_seq_oss            35584  0 
snd_seq_midi_event      9344  1 snd_seq_oss
snd_seq                58336  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          9364  2 snd_seq_oss,snd_seq
snd_pcm_oss            45440  0 
snd_mixer_oss          18944  1 snd_pcm_oss
i2c_i801               12444  0 
i2c_core               26144  1 i2c_i801
sg                     31840  0 
serio_raw               8196  0 
iTCO_wdt               15184  0 
psmouse                57116  0 
iTCO_vendor_support     5636  1 iTCO_wdt
uhci_hcd               27552  0 
video                  22420  0 
output                  5248  1 video
snd_hda_intel         531252  0 
snd_pcm                82952  2 snd_pcm_oss,snd_hda_intel
snd_timer              24720  2 snd_seq,snd_pcm
snd_page_alloc         11792  2 snd_hda_intel,snd_pcm
snd_hwdep              10632  1 snd_hda_intel
snd                    65096  9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
soundcore               9632  1 snd
ehci_hcd               41356  0 
intel_agp              33136  1 
usbcore               160432  6 usbhid,usb_storage,uvcvideo,uhci_hcd,ehci_hcd
thermal                20896  0 
processor              46648  3 thermal
fan                     7304  0 
evdev                  13984  0 
button                  9504  0 
battery                14600  0 
ac                      7176  0 
arc4                    4096  2 
ecb                     5248  2 
iwl3945               103416  0 
rfkill                 13776  2 iwl3945
mac80211              182960  1 iwl3945
led_class               6280  1 iwl3945
cfg80211               36896  2 iwl3945,mac80211
fuse                   59584  2 
sky2                   55300  0 
rtc_cmos               14040  0 
rtc_core               21060  1 rtc_cmos
rtc_lib                 4992  1 rtc_core
ext3                  141328  2 
jbd                    57000  1 ext3
mbcache                10244  1 ext3
sd_mod                 29096  5 
sr_mod                 18884  0 
cdrom                  39080  1 sr_mod
ahci                   36876  4 
ata_piix               27652  0 
ata_generic             8068  0 
pata_acpi               7296  0 
libata                176224  4 ahci,ata_piix,ata_generic,pata_acpi
scsi_mod              119256  5 usb_storage,sg,sd_mod,sr_mod,libata

[root@r2d2 ~]# iwconfig 
        wlan0     IEEE 802.11abg  ESSID:""  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=0 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

[root@r2d2 ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:21:70:93:FA:A3  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:1C:BF:BC:3E:88  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wmaster0  Link encap:UNSPEC  HWaddr 00-1C-BF-BC-3E-88-00-00-00-00-00-00-00-00-00-00  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Thank in advance.
big_smile

Last edited by sistematico (2009-03-15 18:47:44)


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

Board footer

Powered by FluxBB