LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 12-10-2004, 11:40 AM   #1
nostromo
Member
 
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73

Rep: Reputation: 15
No private ioctls?!?!


I'm using Alfa AWPCI01 (actually it's Z-Com XI626) with Prism2.5 chipset
on my MDK10 with linux-wlan-ng drivers . So far it works OK but I can't use
it's private ioctls because everytime I try 'iwpriv wlan0' it gives me:
'wlan0 no private ioctls'. Is it possible that this card doesn't have ability to
enable monitor or scan mode since I've tried 'iwlist wlan0 scan' with return message:
'wlan0 Interface doesn't support scanning : Function not implemented' ?
Previously I tried bulit in driver orinoco_pci and iwpriv gived me some private ioctls
so this makes me confused.
Is it possible that this card doesn't support scaning or monitor mode even with Prism2.5 chip?
 
Old 12-10-2004, 12:03 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
I suspect that the driver, and not the card is the culprit. I'm running a couple of relabelled Zcomax cards and they work fine with patched orinoco-cs drivers to obtain private IOCTLs. They are PCMCIA, though, not PCI.
 
Old 12-11-2004, 04:25 AM   #3
nostromo
Member
 
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73

Original Poster
Rep: Reputation: 15
I suspected the same.
Then which driver would you suggest?
Can you suggest some good forums about wifi on linux where I can find some answers?
 
Old 12-11-2004, 08:42 AM   #4
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
A good forum for Linux WiFi?! You're there! Seriously, I hang out in this one a lot (always?), although it's not Linux-specific. There are some good Linux folk there. http://www.dslreports.com/forum/wlan

I think the orinoco driver should work for you. When I said that "they are PCMCIA, not PCI," I meant the cards I was using rather than the drivers themselves. The release candidate drivers work in monitor mode without patching: http://ozlabs.org/people/dgibson/dldwd/ Or, try the shmoo patch on the 0.13e released version: http://airsnort.shmoo.com/orinocoinfo.html
 
Old 12-11-2004, 11:51 AM   #5
nostromo
Member
 
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73

Original Poster
Rep: Reputation: 15
Considering those two links I've been there and I tried orinoco-0.15rc2 which doesn't need patching
http://ozlabs.org/people/dgibson/dldwd/
http://airsnort.shmoo.com/orinocoinfo.htm

When I installed that driver I tried iwpriv with this result:
Quote:
eth0 Available private ioctl :
force_reset (8BE0) : set 0 & get 0
card_reset (8BE1) : set 0 & get 0
set_port3 (8BE2) : set 1 int & get 0
get_port3 (8BE3) : set 0 & get 1 int
set_preamble (8BE4) : set 1 int & get 0
get_preamble (8BE5) : set 0 & get 1 int
set_ibssport (8BE6) : set 1 int & get 0
get_ibssport (8BE7) : set 0 & get 1 int
dump_recs (8BFF) : set 0 & g

As you can see there's still no scan or monitor mode or maybe I'm missing something here.
Then I tried to reinstall the orinoco driver because I read this at http://airsnort.shmoo.com/orinocoinfo.html:
Quote:
Some things you should know about the patch:

A common problem I am hearing about is people installing pcmcia-cs when they already have kernel pcmcia built in. The problem is that the orinoco drivers for kernel pcmcia install to a different location than the orinoco drivers for pcmcia-cs. This often results in two sets of drivers being present after doing a make install on the pcmcia-cs sources. The problem is that the patched version of the orinoco drivers will not be used, rather the old unpatched drivers get loaded and you will be led to believe that the patch has failed. Make sure that you do not have more than one copy of hermes.o, orinoco.o and orinoco_cs.o in your /lib/modules/<kernel> subtree. Test that you are actually using patched drivers with the following:
iwpriv eth0
If you do not see "monitor" listed as the last available private ioctl, then you are not using patched drivers. Remove any old drivers that you find per the instructions above.
But then I received this after make:
Quote:
Makefile:56: *** PCMCIA_CS must be defined to overwrite old drivers. Stop.
How can I remove those modules to enable 'make' or what should I do with makefile?

If this can help, I found out that my card has NICID 8013 and the firmware are:
Primary:
pk010007.hex
Station:
sf010306.hex
Which means that they are not up to date and I found some new one's.
 
Old 12-11-2004, 01:14 PM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
I've flipped between the 0.13e, 0.15RCx and back several time without the errors you're seeing, and I'm not sure how to direct you there.

The RC drivers do not display the IOCTLs the same way that the patched drivers do, but scanning and monitor mode work. Try running Kismet to see if it flies.
 
Old 12-11-2004, 01:44 PM   #7
nostromo
Member
 
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73

Original Poster
Rep: Reputation: 15
This is the output of kismet:

Quote:
Server options: none
Client options: none
Starting server...
Waiting for server to start before startuing UI...
Will drop privs to tomo (502) gid 501
No specific sources given to be enabled, all will be enabled.
Enabling channel hopping.
Enabling channel splitting.
Source 0 (orinocosource): Enabling monitor mode for orinoco source interface eth0 channel 6...
FATAL: Could not find 'monitor' private ioctl or use the newer style 'mode monitor' command. This typically means that the drivers have not been patched or the correct drivers are being loaded. See the troubleshooting section of the README for more information.
I'll try 0.13e and then I will post you the output, I hope that I will succeed.
 
Old 12-11-2004, 02:32 PM   #8
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 14.0
Posts: 1,874

Rep: Reputation: 49
Wow. I tried again on a test laptop just to make sure I wasn't smoking dope and it's working for me with 0.15RC1 and 2.6.7. Kismet, Ethereal in promiscuous mode, iwlist scan, the whole bit.
 
Old 12-14-2004, 07:18 AM   #9
nostromo
Member
 
Registered: Mar 2003
Distribution: Slackware 14
Posts: 73

Original Poster
Rep: Reputation: 15
Yes, yes it works now but with builltin hostap module.
The only thing I don't know what version of hostap is implemented in MDK10 kernel2.6.3.
It gives me the whole bunch of private ioctls now:

wlan0 Available private ioctl :
monitor (8BE4) : set 1 int & get 0
readmif (8BE3) : set 1 byte & get 1 byte
writemif (8BE2) : set 2 byte & get 0
reset (8BE6) : set 1 int & get 0
inquire (8BE8) : set 1 int & get 0
set_rid_word (8BEE) : set 2 int & get 0
maccmd (8BF0) : set 1 int & get 0
wds_add (8BEA) : set 1 addr & get 0
wds_del (8BEC) : set 1 addr & get 0
addmac (8BF2) : set 1 addr & get 0
delmac (8BF4) : set 1 addr & get 0
kickmac (8BF6) : set 1 addr & get 0
prism2_param (8BE0) : set 2 int & get 0
getprism2_param (8BE1) : set 1 int & get 1 int
ptype (0001) : set 1 int & get 0
getptype (0001) : set 0 & get 1 int
txratectrl (0002) : set 1 int & get 0
gettxratectrl (0002) : set 0 & get 1 int
beacon_int (0003) : set 1 int & get 0
getbeacon_int (0003) : set 0 & get 1 int
pseudo_ibss (0004) : set 1 int & get 0
getpseudo_ibss (0004) : set 0 & get 1 int
alc (0005) : set 1 int & get 0
getalc (0005) : set 0 & get 1 int
txpower (0006) : set 1 int & get 0
getxpower (0006) : set 0 & get 1 int
dump (0007) : set 1 int & get 0
getdump (0007) : set 0 & get 1 int
other_ap_policy (0008) : set 1 int & get 0
getother_ap_pol (0008) : set 0 & get 1 int
max_inactivity (0009) : set 1 int & get 0
getmax_inactivi (0009) : set 0 & get 1 int
bridge_packets (000A) : set 1 int & get 0
getbridge_packe (000A) : set 0 & get 1 int
dtim_period (000B) : set 1 int & get 0
getdtim_period (000B) : set 0 & get 1 int
nullfunc_ack (000C) : set 1 int & get 0
getnullfunc_ack (000C) : set 0 & get 1 int
max_wds (000D) : set 1 int & get 0
getmax_wds (000D) : set 0 & get 1 int
autom_ap_wds (000E) : set 1 int & get 0
getautom_ap_wds (000E) : set 0 & get 1 int
ap_auth_algs (000F) : set 1 int & get 0
getap_auth_algs (000F) : set 0 & get 1 int
allow_fcserr (0010) : set 1 int & get 0
getallow_fcserr (0010) : set 0 & get 1 int
host_encrypt (0011) : set 1 int & get 0
gethost_encrypt (0011) : set 0 & get 1 int
host_decrypt (0012) : set 1 int & get 0
gethost_decrypt (0012) : set 0 & get 1 int
busmaster_rx (0013) : set 1 int & get 0
getbusmaster_rx (0013) : set 0 & get 1 int
busmaster_tx (0014) : set 1 int & get 0
getbusmaster_tx (0014) : set 0 & get 1 int
host_roaming (0015) : set 1 int & get 0
gethost_roaming (0015) : set 0 & get 1 int
bcrx_sta_key (0016) : set 1 int & get 0
getbcrx_sta_key (0016) : set 0 & get 1 int
ieee_802_1x (0017) : set 1 int & get 0
getieee_802_1x (0017) : set 0 & get 1 int
antsel_tx (0018) : set 1 int & get 0
getantsel_tx (0018) : set 0 & get 1 int
antsel_rx (0019) : set 1 int & get 0
getantsel_rx (0019) : set 0 & get 1 int
monitor_type (001A) : set 1 int & get 0
getmonitor_type (001A) : set 0 & get 1 int
wds_type (001B) : set 1 int & get 0
getwds_type (001B) : set 0 & get 1 int
hostscan (001C) : set 1 int & get 0
gethostscan (001C) : set 0 & get 1 int
ap_scan (001D) : set 1 int & get 0
getap_scan (001D) : set 0 & get 1 int
enh_sec (001E) : set 1 int & get 0
getenh_sec (001E) : set 0 & get 1 int
basic_rates (0020) : set 1 int & get 0
getbasic_rates (0020) : set 0 & get 1 int
oper_rates (0021) : set 1 int & get 0
getoper_rates (0021) : set 0 & get 1 int
hostapd (0022) : set 1 int & get 0
gethostapd (0022) : set 0 & get 1 int

Thank you any way!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
public vs private ip emailssent Linux - Networking 2 09-28-2004 02:11 AM
?? Private Pix ?? g452 Linux - Software 0 05-15-2004 06:53 AM
FIO declarations missing from bits/ioctls.h srdennis Programming 0 04-22-2004 05:07 AM
Kernel module programming ioctls? Darktyco Programming 6 02-23-2004 10:59 AM
any way to add private ioctls? lithium88 Linux - Wireless Networking 0 02-22-2004 11:53 AM


All times are GMT -5. The time now is 01:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration