Gentoo Archives: gentoo-user

From: Daevid Vincent <daevid@××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How can I force net.ath0 to use a certain channel?
Date: Fri, 30 Mar 2007 05:26:00
Message-Id: 200703292220.22263.daevid@daevid.com
1 I have an atheros (mad-wifi) internal mini-pci 802.11 a/b/g card in my Dell
2 i8200 notebook running Gentoo. I also have an Engenius hostap 802.11b
3 card/antenna in my Gentoo server. What is frustrating, is that it's a
4 crap-shoot when my ath0 will (or won't) start properly. I have no control
5 over what channel (either numeric like 6, or alpha such as b vs. g) to
6 connect to my AP ("MATRIX").
7
8 Please tell me there is some way to tweak my /etc/conf.d/wireless (or anything
9 for that matter), so that I can tell it, "hey, when connecting to 'MATRIX',
10 always use 802.11b and/or a certain channel range (presumably in the 'b'
11 range)".
12
13 Furthermore, it would REALLY be great if I could do something whereby, if I
14 have net.eth0 (i.e. CAT5 cable) then don't start net.ath0, else try net.ath0.
15 Right now I have net.ath0 disabled by default because I hate when it starts
16 up when I'm plugged in at work, as my traffic seems to go over the "slower"
17 ath0 rather than the faster eth0 port. ?! I have ifplugd installed, but I
18 don't think it can manage this kind of (seemingly obvious and intelligent)
19 decision.
20
21 locutus ~ # /etc/init.d/net.ath0 start
22 * Starting ath0
23 * Configuring wireless network for ath0
24 * ath0 connected to ESSID "MATRIX" at 00:00:00:00:00:00
25 * in managed mode on channel 52 (WEP disabled)
26 * Configuration not set for ath0 - assuming DHCP
27 * Bringing up ath0
28 * dhcp
29 * Running dhcpcd ...
30 Error, timed out waiting for a valid DHCP server response
31 [ !! ]
32 locutus ~ # /etc/init.d/net.ath0 start
33 * Starting ath0
34 * Configuring wireless network for ath0
35 * ath0 connected to ESSID "MATRIX" at 00:00:00:00:00:00
36 * in managed mode on channel 7 (WEP disabled)
37 * Configuration not set for ath0 - assuming DHCP
38 * Bringing up ath0
39 * dhcp
40 * Running dhcpcd ...
41 Error, timed out waiting for a valid DHCP server response
42 [ !! ]
43 locutus ~ # /etc/init.d/net.ath0 start
44 * Starting ath0
45 * Configuring wireless network for ath0
46 * ath0 connected to ESSID "MATRIX" at 00:02:6F:09:B2:B4
47 * in managed mode on channel 6 (WEP disabled)
48 * Configuration not set for ath0 - assuming DHCP
49 * Bringing up ath0
50 * dhcp
51 * Running dhcpcd ...
52 [ ok ]
53 * ath0 received address 10.10.10.69/24
54 locutus ~ #
55 --
56 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] How can I force net.ath0 to use a certain channel? Neil Bothwick <neil@××××××××××.uk>
RE: [gentoo-user] How can I force net.ath0 to use a certain channel? Daevid Vincent <daevid@××××××.com>