Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110763 - ESSID not getting set on boot for madwifi cards
Summary: ESSID not getting set on boot for madwifi cards
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 20:57 UTC by geoffrey
Modified: 2005-11-09 18:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
debug patch (iwconfig-test.patch,385 bytes, patch)
2005-11-02 14:02 UTC, Roy Marples (RETIRED)
Details | Diff
debug patch for baselayout-1.11 (iwconfig.patch,433 bytes, patch)
2005-11-07 01:43 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description geoffrey 2005-10-28 20:57:27 UTC
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.
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2005-10-28 21:09:12 UTC
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.  
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-11-02 11:35:04 UTC
Reporter, please attach the output of

iwlist ath0 scan
Comment 3 geoffrey 2005-11-02 11:54:29 UTC
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
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-11-02 14:02:27 UTC
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 ;)
Comment 5 geoffrey 2005-11-04 19:21:57 UTC
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
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-11-07 01:43:22 UTC
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)
Comment 7 geoffrey 2005-11-07 13:51:44 UTC
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 ...                                                    
                                                                               
                               
Comment 8 geoffrey 2005-11-07 14:14:23 UTC
Further testing shows that this only works with the /etc/conf.d/wireless setting
of "associate_order='forcepreferred'". All other settings fail.
Comment 9 Roy Marples (RETIRED) gentoo-dev 2005-11-08 02:23:07 UTC
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
Comment 10 geoffrey 2005-11-09 18:02:36 UTC
Using wireless-tools-28_pre10 seems to work correctly. The system now associates
with any available AP.