LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2016, 08:40 PM   #1
rebbi
Member
 
Registered: Nov 2013
Posts: 32

Rep: Reputation: Disabled
Question Compiling a custom version of the hostap wireless driver? How??


Hi,
I'm not a total Linux noob but I've not done much messing with compiling from source or customizing the Linux kernel, so please hold my hand a little here.

I have an IBM Thinkpad T30 with an Intersil Prism wireless PCI card. Online research shows that the firmware on the card can be flashed and updated to make the card WPA compliant. I have managed to successfully download the firmware files to be flashed to the wireless card.

This page offers a step by step walkthrough on how to do this under Linux. (I am working with Antix in this case.)

About half way down the page there's this procedure:

Quote:
Download hostap package from CVS or a release that is dated after Aug 3, 2003. Release 0.1.0 or later have this feature as well.
Enable PRISM2_DOWNLOAD_SUPPORT and PRISM2_NON_VOLATILE_DOWNLOAD in driver/modules/hostap_config.h. You simply just uncomment those two define's.
Compile the driver and install them to the kernel using your favorite method.
cd utils and make prism2_srec program.
Download the firmware files that you want to upgrade to.
NOTE THAT YOU HAVE TO RUN prism2_srec AS ROOT. Do a test run with
prism2_srec -v wlan0 <primary firmware> <station firmware>
Note if you only need to flash station firmware, simply omit the "primary firmware" argument. However, NEVER NEVER flash primary firmware alone!!!
Check for any imcompatiable warnings in the previous test run. If things look OK, keep your finger crossed and run
prism2_srec -v -f wlan0 <primary firmware> <station firmware>
or simply if you only update station firmware
prism2_srec -v -f wlan0 <station firmware>
So, I have figured out that I cannot simply use hostap-utils from the Debian repositories via Synaptic, but in order to access and edit hostap_config.h, I need to download and extract the source files, edit that text file and then compile the driver. But I don't know how to do that and I don't know where to get the latest source for the hostap driver (i.e., a version compatible with my kernel).

I'd be very grateful to anybody who can walk me through this. Thank you!
 
Old 03-14-2016, 07:17 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi there,

Those instructions seem very old ;-)

First things first: Which Linux distro are you running - Debian? Which kernel version?

The file you're wanting to edit is in hostap-driver. According to https://w1.fi/hostap-driver.html, "Host AP driver was added into the main kernel tree in Linux v2.6.14. The version in the kernel tree should be used instead of this external hostap-driver package".

If you're using an older kernel, you can download the source from https://w1.fi/releases/.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel with custom hostap driver? rebbi Linux - Kernel 1 03-09-2016 07:03 PM
Hostap-driver for Prism 2.5 neptunus Linux - Wireless Networking 0 09-09-2004 05:36 AM
vmlinuz.version.h problem compiling D-Link PCI ethernet adapter driver dancin Linux - Networking 2 08-09-2004 02:47 PM
please help with installing the hostap-driver-o.1.3 driver for wireless card chrisseattle Linux - Wireless Networking 1 03-26-2004 12:46 PM
Problems with hostap driver arimus25 Linux - Wireless Networking 18 03-21-2004 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration