| Summary: | ESSID not getting set on boot for madwifi cards | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | geoffrey <monkey> |
| Component: | [OLD] baselayout | Assignee: | Roy Marples (RETIRED) <uberlord> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | steev |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
debug patch
debug patch for baselayout-1.11 |
||
It isn't just the madwifi drivers - it seems that the essid just doesn't get set anymore, I have been trying to hunt down what changed, and simply can't find it anymore. Reporter, please attach the output of iwlist ath0 scan ath0 Scan completed :
Cell 01 - Address: xx:xx:xx:xx:xx:xx
ESSID:"ap-essid"
Mode:Master
Frequency:2.437 GHz (Channel 6)
Quality=62/94 Signal level=-33 dBm Noise level=-95 dBm
Encryption key:off
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5 Mb/s
Bit Rate:6 Mb/s
Bit Rate:9 Mb/s
Bit Rate:11 Mb/s
Bit Rate:12 Mb/s
Bit Rate:18 Mb/s
Bit Rate:24 Mb/s
Bit Rate:36 Mb/s
Bit Rate:48 Mb/s
Bit Rate:54 Mb/s
Extra:bcn_int=100
Created attachment 71961 [details, diff]
debug patch
Reporter, please apply this debug patch and attach the output to this bug.
You may want to backup /lib/rcscripts/net.modules.d/iwconfig before applying
the patch though ;)
debug patch does not apply cleanly. Error on line 462. The version of installed wireless-tools is 27-r1, baselayout is 1.11.13-r1 Created attachment 72357 [details, diff]
debug patch for baselayout-1.11
OK, this patch should apply cleanly (last patch was for baselayout-1.12.0_pre9)
Sort of fixed the issue. I applied the baselayout-1.11 patch for iwconfig and
got attached to a known AP. The beacon frames for the AP have not been turned
off; so, it is not hidden as the rcscript guesses. I added
"preferred_aps="ap-essid ap2-essid" and "forcedpreferred" in the
/etc/conf.d/wireless config file. Here is a log snippet:
* Configuring wireless network for ath0
ath0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet6 addr: fe80::205:4eff:fe4a:5344/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:656 errors:48 dropped:0 overruns:0 frame:48
TX packets:663 errors:1 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:499202 (487.5 Kb) TX bytes:77854 (76.0 Kb)
Interrupt:11 Memory:f8bc0000-f8bd0000
ath0 Failed to read scan data : Resource temporarily unavailable
ath0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet6 addr: fe80::205:4eff:fe4a:5344/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:656 errors:48 dropped:0 overruns:0 frame:48
TX packets:663 errors:1 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:499202 (487.5 Kb) TX bytes:77854 (76.0 Kb)
Interrupt:11 Memory:f8bc0000-f8bd0000
ath0 Scan completed :
Cell 01 - Address: xx:xx:xx:xx:xx:xx
ESSID:"ap-essid"
Mode:Master
Frequency:2.422 GHz (Channel 3)
Quality=31/94 Signal level=-64 dBm Noise level=-95 dBm
Encryption key:off
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5 Mb/s
Bit Rate:11 Mb/s
Extra:bcn_int=100
* ath0 does not support scanning
* no access points found
* Trying to force preferred in case they are hidden
* ath0 connected to "ap-essid" at xx:xx:xx:xx:xx:xx
* in managed mode (WEP disabled)
* Bringing up ath0
* dhcp
* Running dhcpcd ...
Further testing shows that this only works with the /etc/conf.d/wireless setting of "associate_order='forcepreferred'". All other settings fail. Could you re-test with wireless-tools-28_pre10 please? BTW, there is a bug with associate_order which has been fixed in baselayout-1.12 Using wireless-tools-28_pre10 seems to work correctly. The system now associates with any available AP. |
The init scripts do not seem to be setting essid for cards that use madwifi drivers. The problem does not appear to be with either wireless-tools or the madwifi-drivers, as essid can be set with iwconfig manually after boot. Reproducible: Always Steps to Reproduce: 1.Configure /etc/conf.d/wireless for essid="any" 2.Boot system 3.rc-scripts fail to set the essid for net.atho Actual Results: The network fails to start. The rc-scripts complain that ath0 doesn't support scanning. However, even configuring /etc/conf.d/wireless for "preferred_aps=("essid1" "essid2")" and "associate_order="any"" does not solve the problem. Here are the log messages. rc-scripts: ath0 does not support scanning rc-scripts: You either need to set a preferred_aps list in /etc/conf.d/wireless rc-scripts: preferred_aps=( "ESSID1" "ESSID2" ) rc-scripts: and set associate_order_ath0="forcepreferred" rc-scripts: or set associate_order_ath0="forcepreferredonly" rc-scripts: or hardcode the ESSID to "any" and let the driver find an Access Point rc-scripts: essid_ath0="any" rc-scripts: or configure defaulting to Ad-Hoc when Managed fails rc-scripts: adhoc_essid_ath0="WLAN" rc-scripts: or hardcode the ESSID against the interface (not recommended) rc-scripts: essid_ath0="ESSID" rc-scripts: Failed to configure wireless for ath0 Expected Results: System boots, looks for an AP, associates with any APs discovered, runs dhcpcd on the ath0 interface, and finishes booting. Previous versions of the rc-scripts, prior to Gentoo v2005.1, worked. On boot my net.ath0 interface would find an available AP, associate with it, and then run dhcpcd for a network address.