Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: Stroller <stroller@××××××××××××××××××.uk>
Cc: gentoo-user@l.g.o
Subject: Re: [gentoo-user] wlan0/ndiswrapper failing after gcc-4 upgrade (and dual Windows boot)
Date: Sun, 26 Nov 2006 20:00:33
Message-Id: 5bdc1c8b0611261150s6010e8f8mb2ddba681278f5b3@mail.gmail.com
In Reply to: Re: [gentoo-user] wlan0/ndiswrapper failing after gcc-4 upgrade (and dual Windows boot) by Stroller
1 Hi Stroller.
2 Thanks in advance!
3
4 On 11/26/06, Stroller <stroller@××××××××××××××××××.uk> wrote:
5 >
6 <SNIP>
7 >
8 > This should be supported by madwifi-ng, although from the comments at
9 > <http://madwifi.org/wiki/Compatibility#AtherosAR5005G> you might try
10 > emerging 0.0.1443.20060207 or 0.0.1531.20060427 if you have problems
11 > with the current release.
12
13 OK - currently have 0.9.2 installed. Will try the others if I don't
14 make headway soon.
15
16 <SNIP>
17 >
18 > > 1) What is the proper way to configure this card using ath0, assuming
19 > > it actually is supported?
20 >
21 > `iwconfig ath0 SSID "Linksys" channel auto key aabbccddeeff &&
22 > ifconfig ath0 up && dhclient ath0` might be a start.
23 >
24 > /etc/conf.d/net contains lots of hints for a proper installation. You
25 > might need to `ln -s /etc/init.d/net.lo /etc/init.d/net.ath0`.
26
27 Yes. As you were writing back I was doing much the same stuff. I
28 created the net.ath0 link as well as adding some config data in
29 /etc/conf.d/wireless and can now start and stop the device:
30
31 Sector9 init.d # /etc/init.d/net.ath0 status
32 * status: started
33 Sector9 init.d # /etc/init.d/net.ath0 stop
34 * Stopping ath0
35 * Bringing down ath0
36 * Shutting down ath0 ...
37 [ ok ]Sector9 init.d # /etc/init.d/net.ath0
38 start
39 * Starting ath0
40 * Configuring wireless network for ath0
41 * ath0 connected to ESSID "LadySmithBliss" at 00:00:00:00:00:00
42 * in managed mode on channel 1 (WEP enabled - restricted)
43 * Bringing up ath0
44 * 192.168.1.158/24
45 [ ok ] * Adding routes
46 * default via 192.168.1.1 ...
47 [ ok ]Sector9 init.d #
48
49 I am not clear about the 00:00:00:00:00:00 thing. Does that mean it's
50 bound to any WAP on the network or is it bound to none of them. I'm
51 not sure how much of this I Can trust, but it is seeing things on the
52 network. Note that there is a LinkSys wireless router, 2 LinkSys
53 wireless access points and a Mac Mini that is wireless so it should
54 see 4 devices, or possibly 3 due to distance issues. Note that at
55 least one MAC address is duplicated in the list below:
56
57 Sector9 init.d # iwlist ath0 scan
58 ath0 Scan completed :
59 Cell 01 - Address: 00:13:10:7D:8F:F9
60 ESSID:""
61 Mode:Master
62 Frequency:2.437 GHz (Channel 6)
63 Quality=31/94 Signal level=-64 dBm Noise level=-95 dBm
64 Encryption key:on
65 Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
66 24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
67 12 Mb/s; 48 Mb/s
68 Extra:bcn_int=100
69 Cell 02 - Address: 00:90:4C:91:00:01
70 ESSID:"REMOVED"
71 Mode:Master
72 Frequency:2.437 GHz (Channel 6)
73 Quality=48/94 Signal level=-47 dBm Noise level=-95 dBm
74 Encryption key:on
75 Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
76 24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
77 12 Mb/s; 48 Mb/s
78 Extra:bcn_int=100
79 Cell 03 - Address: 00:12:17:7A:99:03
80 ESSID:"REMOVED"
81 Mode:Master
82 Frequency:2.437 GHz (Channel 6)
83 Quality=11/94 Signal level=-84 dBm Noise level=-95 dBm
84 Encryption key:on
85 Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
86 24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
87 12 Mb/s; 48 Mb/s
88 Extra:bcn_int=100
89 Cell 04 - Address: 00:13:10:7D:8F:F9
90 ESSID:"REMOVED"
91 Mode:Master
92 Frequency:2.437 GHz (Channel 6)
93 Quality=29/94 Signal level=-66 dBm Noise level=-95 dBm
94 Encryption key:on
95 Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
96 24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
97 12 Mb/s; 48 Mb/s
98 Extra:bcn_int=100
99 Cell 05 - Address: 00:90:4C:91:00:01
100 ESSID:""
101 Mode:Master
102 Frequency:2.437 GHz (Channel 6)
103 Quality=41/94 Signal level=-54 dBm Noise level=-95 dBm
104 Encryption key:on
105 Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
106 24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
107 12 Mb/s; 48 Mb/s
108 Extra:bcn_int=100
109
110 Sector9 init.d #
111
112 With ath0 turned on I have a reasonable routing table except for two
113 'default' interfaces. That goes away when I turn off eth0 for testing,
114 but it's on now so that I can write this email. How do I set which
115 interface is the single default if they are both on?
116
117 Sector9 init.d # route
118 Kernel IP routing table
119 Destination Gateway Genmask Flags Metric Ref Use Iface
120 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
121 192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
122 loopback * 255.0.0.0 U 0 0 0 lo
123 default LinkSys 0.0.0.0 UG 0 0 0 eth0
124 default LinkSys 0.0.0.0 UG 2000 0 0 ath0
125 Sector9 init.d #
126
127 Sector9 init.d # /etc/init.d/net.eth0 stop
128 * Stopping eth0
129 * Bringing down eth0
130 * Shutting down eth0 ...
131 [ ok ]Sector9 init.d # route
132 Kernel IP routing table
133 Destination Gateway Genmask Flags Metric Ref Use Iface
134 192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
135 loopback * 255.0.0.0 U 0 0 0 lo
136 default LinkSys 0.0.0.0 UG 2000 0 0 ath0
137 Sector9 init.d # ifconfig
138 ath0 Link encap:Ethernet HWaddr 00:11:95:88:C7:3A
139 inet addr:192.168.1.158 Bcast:192.168.1.255 Mask:255.255.255.0
140 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
141 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
142 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
143 collisions:0 txqueuelen:0
144 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
145
146 lo Link encap:Local Loopback
147 inet addr:127.0.0.1 Mask:255.0.0.0
148 UP LOOPBACK RUNNING MTU:16436 Metric:1
149 RX packets:31 errors:0 dropped:0 overruns:0 frame:0
150 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
151 collisions:0 txqueuelen:0
152 RX bytes:3125 (3.0 Kb) TX bytes:3125 (3.0 Kb)
153
154 wifi0 Link encap:UNSPEC HWaddr
155 00-11-95-88-C7-3A-20-81-00-00-00-00-00-00-00-00
156 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
157 RX packets:758243 errors:0 dropped:0 overruns:0 frame:4744
158 TX packets:699186 errors:36 dropped:0 overruns:0 carrier:0
159 collisions:0 txqueuelen:199
160 RX bytes:34432569 (32.8 Mb) TX bytes:23865464 (22.7 Mb)
161 Interrupt:21 Memory:dc980000-dc990000
162
163 Sector9 init.d #
164
165 >
166 > > 2) If the above data is about my card then why isn't is coming up
167 > > 802.11g? I get .11g support from ndiswrapper, or did when it
168 > > worked...)
169 >
170 > Well, do you have it configured _as ath0_? If you have your wlan0 in
171 > all your configuration files then the init scripts are ignoring it.
172
173 No, as I say I have added it to the wireless config file:
174
175 Sector9 init.d # cat ../conf.d/wireless
176 # /etc/conf.d/wireless:
177 # Global wireless config file for net.* rc-scripts
178 ##############################################################################
179 # SETTINGS
180 ##############################################################################
181
182 essid_wlan0="MYESSID"
183 preferred_aps=( "MYESSID" )
184 channel_wlan0="6"
185 key_MYESSID="MYKEY enc restricted"
186
187 essid_ath0="MYESSID"
188 preferred_aps=( "MYESSID" )
189 channel_ath0="6"
190 key_MYESSID="MYKEY enc restricted"
191 Sector9 init.d #
192
193 <SNIP>
194 >
195 > Also, you might want to try different versions of the madwifi-ng
196 > driver due to the mentioned problems with that particular card.
197 > These'll surely be sorted out in 0.9.3 or 1.0.0, so there's no need
198 > to stress it - if you can't get ath0 working using `iwconfig` &
199 > `ifconfig` then just package mask 0.9.2 and try an earlier version.
200 >
201
202 That may be the proper next step but it seems like I'm quite close
203 with this version.
204
205 Any idea what I'm missing?
206
207 thanks,
208 Mark
209 --
210 gentoo-user@g.o mailing list