Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
madwifi problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Butts
n00b
n00b


Joined: 08 Jul 2004
Posts: 40

PostPosted: Sat Oct 23, 2004 12:45 am    Post subject: madwifi problems Reply with quote

I had wireless working bu did not have wireless extensions enabled in my kernel so I couldn't use WEP. I enabled the extensions and now my wireless doesn't work.

I followed the outline in Wireless the Gentoo Way, but now I have problems.

I have no /etc/conf.d/wireless file.

When the machine boots, it attempts to connect to my essid, but says it could not associate with it.

My net.ath0 is linked to net.eth0 and my /etc/conf.d/net is standard dhcp for both interfaces.

Please help.
Back to top
View user's profile Send private message
Butts
n00b
n00b


Joined: 08 Jul 2004
Posts: 40

PostPosted: Sat Oct 23, 2004 2:35 am    Post subject: Reply with quote

Part of my problem is that I can not emerge baselayout-1.11.0.

Code:

bash-2.05b# cat /etc/portage/package.unmask
=media-plugins/rmxmms
=media-plugins/realvideo-codecs
=media-video/realplayer
=sys-apps/baselayout-1.11.0


Code:

bash-2.05b# cat /etc/portage/package.keywords
=sys-apps/baselayout-1.11.0 ~x86


Then I get:

Code:

bash-2.05b# emerge -av sys-apps/baselayout-1.11.0

These are the packages that I would merge, in order:

Calculating dependencies   

!!! Problem in sys-apps/baselayout-1.11.0 dependencies.
!!! "Specific key requires an operator (sys-apps/baselayout-1.11.0) (try adding an '=')" exceptions


Need more help....
Back to top
View user's profile Send private message
iverson0881
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 285
Location: CA

PostPosted: Sat Oct 23, 2004 10:48 pm    Post subject: Reply with quote

The latest package in portge for baselayout is sys-apps/baselayout-1.11.3
Back to top
View user's profile Send private message
Butts
n00b
n00b


Joined: 08 Jul 2004
Posts: 40

PostPosted: Mon Oct 25, 2004 1:44 pm    Post subject: Reply with quote

So now I have the current baselayout now, but I still cannot associate with the access points.

During the startup script, I get:

Code:

Connecting to "any" (WEP disabled).......[!!]
Trying to force preferred in case they are hidden
Connecting to "SMC" (WEP disabled)......[!!]
Connecting to "CAEN Wireless" (WEP disabled).........[!!]
Failed to associate
...


So it appears as if my card is not scanning at startup, and even then it doesn't connect to the preferred AP's. I know for a fact that CAEN Wireless is a reliable, strong connection. What else should I try?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Oct 25, 2004 2:20 pm    Post subject: Reply with quote

Butts wrote:

So it appears as if my card is not scanning at startup, and even then it doesn't connect to the preferred AP's. I know for a fact that CAEN Wireless is a reliable, strong connection. What else should I try?


Don't set the ESSID
That should get scanning working.
For the connection problem, your driver may not be resetting the AP MAC address properly - play around with the associate_test_ath0 variable which is documented in /etc/conf.d/wireless.example
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Butts
n00b
n00b


Joined: 08 Jul 2004
Posts: 40

PostPosted: Mon Oct 25, 2004 2:33 pm    Post subject: Reply with quote

When it scans at startup, should it say which ap's it finds? Because I commented out, setting the ESSID, and now it says it is scanning, but never finds the ap. I alos notice that my wireless led is on when it gets to starting ath0, but then turns off right before scanning.

Hmmm....
Back to top
View user's profile Send private message
Butts
n00b
n00b


Joined: 08 Jul 2004
Posts: 40

PostPosted: Mon Oct 25, 2004 9:30 pm    Post subject: Reply with quote

OK, now I have it scanning and associating properly, but I had to use the trick mentioned in the other thread.

Code:

iwpriv_ath0=( "mode 2" )


And now I get a connection, but when I run iwcofig, my connection rate is only 11Mbps as opposed to the 54Mbps that my card and ap are capable of.

Is there any way to correct this? I found that mode 3 gave me 36Mbps, but I would like the full 54.

Thanks for the help. And I love these scripts. Very clean and easy to use.
Back to top
View user's profile Send private message
smerkal
n00b
n00b


Joined: 29 Oct 2004
Posts: 2

PostPosted: Fri Oct 29, 2004 4:22 am    Post subject: Reply with quote

having trouble getting the iwpriv_ath0 variable to work. /etc/conf.d/wireless is:

Code:

essid_ath0=( "HomeNet" )
key_HomeNet=( "s:xxxxxxxxxxxxx" )
iwpriv_ath0=( "mode 2" )
ifconfig_HomeNet=( "dhcp" )


running /etc/init.d/net.ath0 results in:

Code:

 * Starting ath0
 *    Configuring wireless network for ath0
 *      Connecting to "HomeNet" (WEP enabled) ...                         [ !! ]
 *    Failed to configure wireless for ath0


If I enter "iwpriv ath0 mode 2" at the command line and then run the script all is well. Any sugggestions?[/code]
Back to top
View user's profile Send private message
Butts
n00b
n00b


Joined: 08 Jul 2004
Posts: 40

PostPosted: Fri Oct 29, 2004 3:59 pm    Post subject: Reply with quote

Did you add the preup function as well?

For some odd reason iwpriv must be run twice.

Code:

preup()  {
         if  [ $1 == "ath0" ] ; then
                       iwpriv $1 mode 2
         fi
         return 0
}
Back to top
View user's profile Send private message
smerkal
n00b
n00b


Joined: 29 Oct 2004
Posts: 2

PostPosted: Fri Oct 29, 2004 4:42 pm    Post subject: Reply with quote

Thanks, Butts. Didn't know about that, but it solves the problem. Hotplug works now too :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum