Hi all:

I've run into an icky issue with the porting of the netbsd wifi driver. The code uses async usb tasks which I have absolutely no idea how to implement in qnx. These tasks are also ordered in a task queue. Can anyone shed any light on a possible approach? I am currently testing nw_pthread_create in the attach but getting error 22...

Any advice would be much appreciated, thanks in advance.

B/R
Jim Tan

On Thu, May 10, 2012 at 9:30 PM, Jim Tan <shinjiuh@gmail.com> wrote:
Hi everyone !

I'm a newcomer to qnx 6.5.0. I have a USB wifi dongle (Zyxel NWD2205) that I need to setup an ad-hoc network with. Apparently, the chipset is realtek rtl8192cu, qnx doesn't have any driver support for this module. Netbsd does have the driver tho.

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/?only_with_tag=MAIN
(if_urtwn.c, if_urtwn_data.h, if_urtwnreg.h and if_urtwnvar.h)

I also have the linux drivers from realtek site...

What should I do at this point in time ? Can I simply download the 4 files from netbsd, create a qnx C project in momentics and make a devnp-urtwn.so target ? Or am I going about this in the wrong way? Is there a comprehensive guide that I can refer to about porting netbsd drivers ? Also, how should I make this driver available for other qnx users like myself ?

Any help would be much appreciated, thanks.

B/R
Jim Tan