public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zhou Rui" <ghoulr@gmail.com>
To: <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Atheros 5xxx driver in kernel 2.6.24-gentoo-r5
Date: Fri, 27 Jun 2008 10:03:36 +0800	[thread overview]
Message-ID: <004701c8d7fa$079043b0$16b0cb10$@com> (raw)
In-Reply-To: <200806261956.22173.dirk.heinrichs@online.de>

>Did you autoload the module at boot (see /etc/conf.d/modules: 
>modules="ath_pci")?
I don't write the profile, because the module can be loaded automatically
at boot. 
I used TKIP in my D-Link Router, so I emerged wpa_supplicant yesterday, 
it works fine. But at Linksys WRT54G which use shared WEP, still cannot 
obtain the IP at boot, then I switch the encryption of WRT54G to TKIP, it
got
the address... Now I think there may be some issue at the WEP connection 
initial stage, so at last, this card works fine for me. Thank you very much.


-----邮件原件-----
发件人: Dirk Heinrichs [mailto:dirk.heinrichs@online.de] 
发送时间: 2008年6月27日 1:56
收件人: gentoo-user@lists.gentoo.org
主题: Re: [gentoo-user] 答复: [gentoo-user] Atheros 5xxx driver in kernel 2.
6.24-gentoo-r5

Am Donnerstag, 26. Juni 2008 schrieb Zhou Rui:
> Finally, I emerged madwifi-ng and the WLAN card works. Add if I do the 
> cmd
> manually:
> # /etc/init.d/net.ath0 start
> the interface can get IP address from dhcp normally. But when I add 
> the net. ath0 to the runlevel default and reboot, it cannot obtain the 
> IP information with dhcpcd... That means I have to run the network 
> restart script every time the system boots... Can you give me some 
> advices about this?


> # cat /etc/conf.d/net
>
> # This blank configuration will automatically use DHCP for any net.* # 
> scripts in /etc/init.d.  To create a more complete configuration, # 
> please review /etc/conf.d/net.example and save your configuration # in 
> /etc/conf.d/net (this file :]!).
>
> # config_eth0=( "dhcp" )
> # dhcp_eth0="nonis nontp"
>
> modules=( "iwconfig" )
> key_xxxxxx="[1] cccc-cccc-cccc-cccc-cccc-cccc-cc key [1] enc restricted"
> preferred_aps=( "xxxxxx" )

Hmm, isn't that WEP only (not sure)?

> config_ath0=( "dhcp" )
> dhcp_ath0="nonis nontp"

Here's mine:

modules=( "wpa_supplicant" "dhcpcd" )
wpa_supplicant_ath0="-Dmadwifi"
wpa_timeout_ath0=60
essid_ath0="<my_network_name>"
config_<my_network_name>=( "dhcp" )
key_<my_network_name>="s:<my_wpa_key>"

And finally, my wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
# ap_scan=2 was the one for me you may try 0 or 1 indstead of 2 ap_scan=0
fast_reauth=1

network={
        ssid="<my_network_name>"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        psk="<my_wpa_key>"
}

Of course, you need to emerge wpa_supplicant.

HTH...

	Dirk

--
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-06-27  2:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23 14:07 [gentoo-user] Atheros 5xxx driver in kernel 2.6.24-gentoo-r5 Zhou Rui
2008-06-23 14:09 ` [gentoo-user] " Zhou Rui
2008-06-23 14:22 ` [gentoo-user] " Kan-I Jyo
2008-06-23 14:33   ` James
2008-06-23 23:21   ` Neil Bothwick
2008-06-24  1:15     ` Kan-I Jyo
2008-06-24  8:17       ` Zhou Rui
2008-06-24  9:15         ` Kan-I Jyo
2008-06-26  1:19           ` [gentoo-user] 答复: " Zhou Rui
2008-06-26 17:56             ` Dirk Heinrichs
2008-06-27  2:03               ` Zhou Rui [this message]
2008-06-26  5:36           ` Zhou Rui
2008-06-24  8:29 ` Dirk Heinrichs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004701c8d7fa$079043b0$16b0cb10$@com' \
    --to=ghoulr@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox