1 |
>Did you autoload the module at boot (see /etc/conf.d/modules: |
2 |
>modules="ath_pci")? |
3 |
I don't write the profile, because the module can be loaded automatically |
4 |
at boot. |
5 |
I used TKIP in my D-Link Router, so I emerged wpa_supplicant yesterday, |
6 |
it works fine. But at Linksys WRT54G which use shared WEP, still cannot |
7 |
obtain the IP at boot, then I switch the encryption of WRT54G to TKIP, it |
8 |
got |
9 |
the address... Now I think there may be some issue at the WEP connection |
10 |
initial stage, so at last, this card works fine for me. Thank you very much. |
11 |
|
12 |
|
13 |
-----邮件原件----- |
14 |
发件人: Dirk Heinrichs [mailto:dirk.heinrichs@××××××.de] |
15 |
发送时间: 2008年6月27日 1:56 |
16 |
收件人: gentoo-user@l.g.o |
17 |
主题: Re: [gentoo-user] 答复: [gentoo-user] Atheros 5xxx driver in kernel 2. |
18 |
6.24-gentoo-r5 |
19 |
|
20 |
Am Donnerstag, 26. Juni 2008 schrieb Zhou Rui: |
21 |
> Finally, I emerged madwifi-ng and the WLAN card works. Add if I do the |
22 |
> cmd |
23 |
> manually: |
24 |
> # /etc/init.d/net.ath0 start |
25 |
> the interface can get IP address from dhcp normally. But when I add |
26 |
> the net. ath0 to the runlevel default and reboot, it cannot obtain the |
27 |
> IP information with dhcpcd... That means I have to run the network |
28 |
> restart script every time the system boots... Can you give me some |
29 |
> advices about this? |
30 |
|
31 |
|
32 |
> # cat /etc/conf.d/net |
33 |
> |
34 |
> # This blank configuration will automatically use DHCP for any net.* # |
35 |
> scripts in /etc/init.d. To create a more complete configuration, # |
36 |
> please review /etc/conf.d/net.example and save your configuration # in |
37 |
> /etc/conf.d/net (this file :]!). |
38 |
> |
39 |
> # config_eth0=( "dhcp" ) |
40 |
> # dhcp_eth0="nonis nontp" |
41 |
> |
42 |
> modules=( "iwconfig" ) |
43 |
> key_xxxxxx="[1] cccc-cccc-cccc-cccc-cccc-cccc-cc key [1] enc restricted" |
44 |
> preferred_aps=( "xxxxxx" ) |
45 |
|
46 |
Hmm, isn't that WEP only (not sure)? |
47 |
|
48 |
> config_ath0=( "dhcp" ) |
49 |
> dhcp_ath0="nonis nontp" |
50 |
|
51 |
Here's mine: |
52 |
|
53 |
modules=( "wpa_supplicant" "dhcpcd" ) |
54 |
wpa_supplicant_ath0="-Dmadwifi" |
55 |
wpa_timeout_ath0=60 |
56 |
essid_ath0="<my_network_name>" |
57 |
config_<my_network_name>=( "dhcp" ) |
58 |
key_<my_network_name>="s:<my_wpa_key>" |
59 |
|
60 |
And finally, my wpa_supplicant.conf: |
61 |
|
62 |
ctrl_interface=/var/run/wpa_supplicant |
63 |
ctrl_interface_group=0 |
64 |
eapol_version=1 |
65 |
# ap_scan=2 was the one for me you may try 0 or 1 indstead of 2 ap_scan=0 |
66 |
fast_reauth=1 |
67 |
|
68 |
network={ |
69 |
ssid="<my_network_name>" |
70 |
proto=WPA |
71 |
key_mgmt=WPA-PSK |
72 |
pairwise=TKIP |
73 |
group=TKIP |
74 |
psk="<my_wpa_key>" |
75 |
} |
76 |
|
77 |
Of course, you need to emerge wpa_supplicant. |
78 |
|
79 |
HTH... |
80 |
|
81 |
Dirk |
82 |
|
83 |
-- |
84 |
gentoo-user@l.g.o mailing list |