Creating a intel 4965agn device driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
MrCoolsman
Posts: 2
Joined: Fri Jun 12, 2009 10:10 pm

Creating a intel 4965agn device driver

Post by MrCoolsman »

Hello,

I want to create an Intel wireless driver, but I cannot find the driver docs to do it. Intel usually does a good job at releasing them, but I've searched developer.intel.com and google and can't find them. Any help would be appreciated.

Oh, and I'm a new user. Great website!
MrCoolsman
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Creating a intel 4965agn device driver

Post by pcmattman »

Hi,

Welcome to the forum. I've been in the same situation, and unless someone else has actually found the documentation for Intel's wireless NICs, you're probably stuck looking at source implementations. Linux or the BSD's are probably your best bet.

Hope this helps - and if anyone else knows where a proper spec is, by all means tell me I'm wrong :)

EDIT: The firmware binaries may also end up being problematic.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Creating a intel 4965agn device driver

Post by Troy Martin »

An intense google returned nothing more than a "User Guide" which tells you how to put it in the slot and use it. Not very helpful.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Creating a intel 4965agn device driver

Post by VolTeK »

troy: pretty much,at intel, they dont assume any one does more than how to use it
pcmattman: yeah that is prety much your best bet
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Creating a intel 4965agn device driver

Post by Brynet-Inc »

OpenBSD's iwn(4) driver supports the 4965AGN series of Intel Wireless devices, pcmattman is correct though.. you may not be able to redistribute the firmware* in the US.

http://www.openbsd.org/cgi-bin/cvsweb/s ... i/if_iwn.c
http://www.openbsd.org/cgi-bin/cvsweb/s ... f_iwnreg.h
http://www.openbsd.org/cgi-bin/cvsweb/s ... f_iwnvar.h

Presumably you could host the firmware elsewhere in the world, or provide instructions for extracting the firmware from a Windows driver.

* Firmware is code executed by the internal processor within the Wireless device, not your kernel.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Creating a intel 4965agn device driver

Post by pcmattman »

Firmware is code executed by the internal processor within the Wireless device, not your kernel.
My point was that the firmware has to be installed, which may require a little more support in the kernel.
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: Creating a intel 4965agn device driver

Post by NickJohnson »

I think the firmware/microcode for the 4965agn is publicly available. I have that card in my laptop, and Gentoo is able to install it as a package with no (apparent) strings attached. Also, the Linux driver ("iwlwifi") works quite well for me, and is part of the main kernel source tree - you may want to check that out as well. I believe Intel actually wrote it and released the source code, so it's bound to be a good source of documentation :wink: .

Edit: Some more interesting information from the iwlwifi website. Although the Linux driver itself is open source, the microcode is under a license which means it cannot be reverse engineered, otherwise someone could make the card violate its FCC certification. So unless you know the internals of the card (which no one does), you're stuck with using that binary blob in conjunction with your driver; if you somehow could rewrite it, I'm sure you could get a lot more "interesting" functionality out of the hardware.
Last edited by NickJohnson on Sat Jun 13, 2009 8:02 pm, edited 1 time in total.
MrCoolsman
Posts: 2
Joined: Fri Jun 12, 2009 10:10 pm

Re: Creating a intel 4965agn device driver

Post by MrCoolsman »

According to http://intellinuxwireless.org/?n=FAQ&s=license, the binaries/firmware are freely distributable.

Thanks for the link, Brynet-Inc. I'll have to take a closer look at the source before I'll understand it.
Post Reply