Howto:Hostap
From Offensive-security.com
How to get Hostap Working with Prism2 Cards
Wlan-ng drivers are not included in BT2 v.2.0 final. This is how I get my SMC2532W-B to run under Hostap (also works with Senao NL-2511CD PLUS EXT2 -theprez98).
I shove the card in, and the wrong drivers get loaded:
Module Size Used by orinoco_cs 13576 1 orinoco 37280 1 orinoco_cs hermes 6272 2 orinoco_cs,orinoco
I remove the card, and:
bt ~ # rmmod orinoco_cs bt ~ # rmmod orinoco bt ~ # rmmod hermes bt ~ # modprobe hostap_cs
Then reinsert the card.
Updated firmware users of Prism2 Cards
If your card still does not get recognized and is identified by "pccardctl info| grep MANFID" as 0x0156,0x0002 (for instance) you can patch hostap_cs.c (search for all instance of 0x0138 and replace it with 0x0156). The file is within kernel source directory which is usually /usr/src/linux* or do "find / -name hostap_cs.c. Afterwards, do the following:
- "pccardctl eject"
Removing the card physically after doing this command is optional however, do not forcefully remove the card or you will get kernel panic in a worst case scenario.
- "modprobe -r hostap_cs && modprobe -r hostap"
You can use airdriver-ng to remove the card however I am unsure of the command
- "make clean && make modules && make modules_install".
Make sure that your PWD is still in kernel source directory
- "pccardctl insert && modprobe hostap_cs"
If you have physically removed the card, you will not need to use pccardctl, just do modprobe hostap_cs
- Updated info by hatake_kakashi
Get Hostap drivers working permanently:
- Edit the blacklist
bt ~ # nano /etc/modprobe.d/blacklist
- Scroll down to
# Modules used to run a wireless adapter...
- Edit to look like the following:
# blacklist hostap_cs
blacklist hostap_pci
blacklist hostap_plx
blacklist hostap
blacklist orinoco_cs
blacklist orinoco
blacklist hermes
- This method will blacklist orinoco/hermes drivers and if you have such cards, you will need to manually modprobe them.
- Another method is to try this out (unverified):
bt ~ # vim /etc/pcmcia/config
- Search for orinoco_cs
/orinoco_cs
- Keep hitting / until you see something like this:
card "Intersil PRISMII 11 Mbps Wireless Adapter"
manfid 0x0156, 0x0002
bind "orinoco_cs"
- Change it so it looks like this:
card "Intersil PRISMII 11 Mbps Wireless Adapter"
manfid 0x0156, 0x0002
bind "hostap_cs"
- You will then need to force overwrite to the read only file:
:x!
- hatake_kakashi
