Discussion:
porting run(4) and malo(4) from OpenBSD
(too old to reply)
FUKAUMI Naoki
2009-02-02 02:48:43 UTC
Permalink
hi

I'm porting run(4) (at usb) and malo(4) (at pcmcia) from OpenBSD.

http://www.naobsd.org/wifi/

it's not completed yet but my spare time is very limited, so I put it to
the public. they can be compiled and partially working on netbsd-5/i386.

if you want to use, please check your device's vendor/product id and add
it to source code before compiling.

firmware is required. see below.

http://www.openbsd.org/cgi-bin/man.cgi?query=malo&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/microcode/rum/

----
current status

run(4):
BUFFALO WLI-UC-AG300N (RT2860+RT2850)

can associate with 11a/b/g AP if no WEP/WPA.
WPA handshake seems to complete, but no packet tx/rx.

PLANEX GW-USMicroN (RT3070+RT3020) is not working by unknown reason.

malo(4):
IODATA WN-G54/CF

can attach.
panic while "ifconfig up". (if association succeeded?)

malo@{pci,cardbus} is not supported by this driver!


----
rum(4) is also available on my web. it's based on latest OpenBSD code.
I'm using it for ordinary use.


any comment are welcome.

--
FUKAUMI Naoki

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
FUKAUMI Naoki
2009-02-02 19:26:30 UTC
Permalink
At Mon, 02 Feb 2009 11:48:43 +0900,
Post by FUKAUMI Naoki
I'm porting run(4) (at usb) and malo(4) (at pcmcia) from OpenBSD.
http://www.naobsd.org/wifi/
uath(4) is added, too. maybe unstable. h/w WEP does not work yet.

as a workaround, RUN_SWCRYPTO and UATH_SWCRYPTO macro is added. if it is
defined, s/w crypto in net80211 will be used.

I can connect my WPA-PSK/AES AP with run(4) + RUN_SWCRYPTO now.


----
with run(4), when I did

attach -> exec wpa_supplicant -> connect -> exec dhcpcd

I got interrupt storm. (many "RX status=6" messages on console)

but

attach -> exec ifconfig run0 inet xxx -> wpa_supplicant -> connect

seems no problem.

I think run_init() may have problem.

--
FUKAUMI Naoki

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
FUKAUMI Naoki
2009-02-09 16:12:29 UTC
Permalink
hi

I've added module glue to rum(4), run(4), and uath(4). dependency is not
resolved, so required functions must be compiled in kernel.

see Makefile before compiling.

----
run(4) hardware encryption/decryption is working now!

only 1st key is working on WEP. you should use ifconfig nwkey 1:xxx or
wep_tx_keyidx=0 for wpa_supplicant.

WPA-PSK + AES-CCMP works well. TKIP is not tested.

run(4) may hang with endless "RX status=6" messages. (I said interrupt
storm in previous mail)

it happens by setting IPv4 address while running state, e.g.

1. run wpa_supplicant or ifconfig ssid xxx nwkey yyy up
2. link up
3. run dhcpcd or ifconfig run0 inet your_address

workaround is

1. run ifconfig run0 inet 0.0.0.0 /* or something else */
2. run wpa_supplicant or ifconfig ssid xxx nwkey yyy up
3. link up
4. run dhcpcd or ifconfig run0 inet your_address
5. run ifconfig run0 inet 0.0.0.0 -alias

----
no update for malo(4).

--
FUKAUMI Naoki

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
FUKAUMI Naoki
2009-04-03 15:14:26 UTC
Permalink
hi

I can't remember changes from previous. I'll write current status of
ported drivers. all files can be retrieved from

http://www.naobsd.org/wifi/ (for netbsd-5)

you should get firmware from OpenBSD (src tree or binary package).


--
malo(4)

status: not work.
notes : AP scan is working. panic will occur when associate with AP.

--
otus(4) (NEW!)

status: not work.
notes : command timeout. panic will occur when detach.

--
run(4)

status: works fine.
notes : hw crypto has issues with WEP/TKIP. sw crypto is default now.
hostap code is experimental.

--
uath(4)

status: works but issues.
notes : hw crypto has issues with 40 bits key. sw crypto is default now.
slow (many packet loss).

--
upgt(4)

status: not work.
notes : no radio signal is received.

========
up-to-date rum(4) and zyd(4) are also available.

--
rum(4)

status: works fine.
notes : some bugs are fixed.

--
zyd(4)

status: not work.
notes : command timeout.


I still continue to work but progress is slow...

--
FUKAUMI Naoki

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...