It is currently Mon Nov 23, 2009 4:12 am




Post new topic Reply to topic  [ 7 posts ] 
 openbsd: using the ath driver on campus 
Author Message
Winner
User avatar

Joined: Mon Oct 01, 2007 10:15 am
Posts: 392
Location: Infinite Reality
Post openbsd: using the ath driver on campus
what is required to get my wireless card to work in openbsd?
Code:
ath0 at cardbus1 dev0 function 0 "Atheros Communications, Inc., AR5001-0000-0000, Wireless LAN Reference Card": irq 11
ath0:AR2413 7.8 phy 4.5 rf 5.6, FCC1A, address {blah}

I also receive sometimes
Code:
ar5k_ar5212_nic_wakeup: failed to resume the AR5212 (again)
ath0: unable to reset hardware; hal status 63

as well as a few other error messages sometimes, however I can see a bunch of stuff by scanning (ifconfig -M ath0)

i'm trying
Code:
ifconfig ath0 nwid "NoWireUC" nwkey ucwirelesskey


Mon Mar 03, 2008 10:09 am
Profile WWW
Site Admin

Joined: Sun Sep 30, 2007 8:09 pm
Posts: 404
Post Re: openbsd: using the ath driver on campus
I've only done it on freebsd, but I'd imagine it's not difficult for openBSD. The FreeBSD way has different syntax.

_________________
~ LaRC President ~


Mon Mar 03, 2008 10:35 am
Profile WWW
Winner
User avatar

Joined: Mon Oct 01, 2007 10:15 am
Posts: 392
Location: Infinite Reality
Post Re: openbsd: using the ath driver on campus
i should add that my wired card dc0 is working just fine.

its weird, sometimes the lights will blink and then they will stop again, or not. they just flash randomly, in windows just the link light will flash until it is ok and then it stays solid green. the act light then flashes when transferring.

in openbsd it is just one flashing and then the other and back again...


Mon Mar 03, 2008 10:50 am
Profile WWW
Site Admin

Joined: Sun Sep 30, 2007 8:09 pm
Posts: 404
Post Re: openbsd: using the ath driver on campus
that means you're having issues associating, the way you're doing the wepkey must be wrong. Note that there is a tranmission key and a regular key, in most cases they are one in the same. This is the point in having several key indices (which is what bsd and linux do). I can give you my access point command for your reference and you can infer what is necessary for the client from that. I actually had a client configured correctly in bsd on lincoln's laptop before he gave it to his brother.

_________________
~ LaRC President ~


Mon Mar 03, 2008 12:40 pm
Profile WWW
Site Admin

Joined: Sun Sep 30, 2007 8:09 pm
Posts: 404
Post Re: openbsd: using the ath driver on campus
Try this:

Code:
ifconfig ath0 mode 11g media autoselect nwid "NoWireUC" nwkey \ 0x7563776972656C6573736B6579
iconfig ath0 up
dhclient ath0


If you have any more trouble, consult these man pages if you haven't already, they give great diagnostics of the error messages:
http://www.openbsd.org/cgi-bin/man.cgi? ... &sektion=4

Note: The backslash indicates that there was a word wrap, that key needs to go on the same line.

Also, media "autoselect" allows your card to go at a lower speed depending on signal strength and traffic. Realistically wireless networks have issues establishing stable associations at 54mbps. This is very similar to the freebsd syntax.

_________________
~ LaRC President ~


Mon Mar 03, 2008 1:08 pm
Profile WWW
Winner
User avatar

Joined: Mon Oct 01, 2007 10:15 am
Posts: 392
Location: Infinite Reality
Post Re: openbsd: using the ath driver on campus
Kung Fu Jesus wrote:
Try this:

Code:
ifconfig ath0 mode 11g media autoselect nwid "NoWireUC" nwkey 0x7563776972656C6573736B6579
iconfig ath0 up
dhclient ath0



may not issue 'media' after 'mode' command

so i try
Code:
ifconfig ath0 mode 11g nwid "NoWireUC" nwkey 0x7563776972656C6573736B6579
ifconfig ath0 media autoselect nwid "NoWireUC" nwkey 0x7563776972656C6573736B6579
ifconfig ath0 nwid "NoWireUC" nwkey 0x7563776972656C6573736B6579
all with the same result

then when i bring it up, it starts the same flash random lights thing again, and I can't get an address.

this is how it is supposed to work:
link light flashing: not associated
link light solid: associated
link light off: card is not powered up

the model of the card is a dlink dwl-g630 rev. C2

I can see plenty of stuff with ifconfig -M ath0

I should add, that typing just "ifconfig" I can see the same thing under nwkey for ath0 wether I type it in hex or ascii

under status, though: I have
status: no network


Tue Mar 04, 2008 8:28 am
Profile WWW
Site Admin

Joined: Sun Sep 30, 2007 8:09 pm
Posts: 404
Post Re: openbsd: using the ath driver on campus
I have the same card, and the way my card works in linux is the lights go from left to right over and over again until it associates, then when it does, they stay solid for a second, then blink on and off simultaneously.

I'm reading through mailing lists about some issues people are having, but back in openBSD 3.7. That card should be supported, but if you're still having issues use freesbie as a live disc and try to associate. Although openBSD and freeBSD have different kernels (and some different drivers), they share a similar codebase. Having it work in FreeBSD does not imply it will work in the other and vice versa, but you'll get an idea how well it is supported. I have a (I think nwlink) atheros card on my freebsd access point and it works for the most part (although, the crappy PCI bus (probably not version 2) that it's using may not be wide enough to support the throughput I'd like). Anyhow, lemme know how it goes.

_________________
~ LaRC President ~


Tue Mar 04, 2008 10:35 am
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.