Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82983 - madwifi-driver doesnt work 100% with the network rc-script(baselayout-1.11.9-r1)
Summary: madwifi-driver doesnt work 100% with the network rc-script(baselayout-1.11.9-r1)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-02-22 12:04 UTC by Thomas
Modified: 2005-05-25 02:53 UTC (History)
0 users

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


Attachments
verbose output of the network rc-script for both my 3crpag175 and ipw2100 (wlan.txt.txt,4.38 KB, text/plain)
2005-02-25 08:40 UTC, Thomas
Details
allows iwconfig and iwpriv setup before configure (iwconfig.patch,219 bytes, patch)
2005-02-28 07:28 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2005-02-22 12:04:42 UTC
the madwifi-driver cant scan/wont get any results, unless the interface is brought up before scanning (ifconfig ath0 up).
the rc-script doesnt consider this, and thus it cant bring the interface up. additionally, the madwifi card is very unstable when it comes to scan results. you get results with "iwlist ath0 scan" most of the time, but it never connects using the rc-scripts even though you bring the interface up


Reproducible: Always
Steps to Reproduce:
/etc/init.d/net.ath0 restart

Actual Results:  
/etc/init.d/net.ath0 restart
 * Starting ath0
 *    Configuring wireless network for ath0
 *    Failed to configure wireless for ath0                               [ !! ]


Expected Results:  
/etc/init.d/net.eth1 restart
 * Stopping eth1
 *    Bringing down eth1
 *       Stopping dhcpcd on eth1 ...                                             
                              [ ok ]
 *       Shutting down eth1 ...                                                  
                              [ ok ]
 * Starting eth1
 *    Configuring wireless network for eth1
 *       eth1 connected to "homenet" at 00:xx:xx:xx:xx:xx
 *       in managed mode (WEP enabled - open)
 *    Bringing up eth1
 *       Configuration not set for eth1 - assuming dhcp
 *       dhcp
 *          Running dhcpcd ...                                                   
                              [ ok ]
 *          eth1 received address x.x.x.x


either apply a patch to the madwifi-driver to allow scanning regardless of int 
status, or create a /etc/conf.d/net configuration workaround for it?

workaround is to set a static assosciation
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-02-23 02:15:09 UTC
The interface is brought up before scanning.

Try setting sleep_scan_ath0="60" which will force a wait of 60 seconds after ath0 has been brough up and before it attempts a scan. If this works, reduce the number until you find a happy medium.
Comment 2 Thomas 2005-02-23 12:00:22 UTC
Then there must be another issue as I had previously tried with sleep_scan_ath0 vlue of 5, but now with 60 as you suggested, even 100 without any results.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-02-23 23:43:31 UTC
Could you set RC_VERBOSE=yes in /etc/conf.d/rc and restart the script please?

I use the madwifi driver myself and it works just fine.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-02-24 02:40:41 UTC
Also, I just noticed that you're using WEP - can you connect without WEP?
You'll need to turn WEP off at the AP as well to test.
Comment 5 Thomas 2005-02-25 08:40:29 UTC
Created attachment 52128 [details]
verbose output of the network rc-script for both my 3crpag175 and ipw2100

As I booted up my laptop to test without WEP, my madwifi card actually managed
to assosciate for the first time, without me touching any settings. I tried to
reboot 3-4 times to test if it could assosciate a second time, but no.
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-02-28 07:28:10 UTC
Created attachment 52301 [details, diff]
allows iwconfig and iwpriv setup before configure

You'll need the above patch to try the following

iwpriv_ath0="mode 3"
This forces the card into g mode which is apparently sometimes required.

Also, it looks like you have the essid hardcoded - the madwifi driver supports
scanning, so you can remove the option essid_ath0=

Lastly, if this still fails you can use wpa_supplicant instead as it supports
madwifi cards and can connect to WEP secured AP's
Comment 7 Roy Marples (RETIRED) gentoo-dev 2005-04-26 01:46:03 UTC
Is your AP broadcasting its ESSID? If not, then try the patch in the forum linked below
http://forums.gentoo.org/viewtopic-p-2351030.html#2351030
Comment 8 Roy Marples (RETIRED) gentoo-dev 2005-05-25 02:53:40 UTC
Re-open the bug if any of the above fails to fix it for you