Click to See Complete Forum and Search --> : wireless extension coding


threadhead
10-03-2003, 12:57 PM
hi, im using a wlan card that is using the atheros cs.
the card is working ok.

the header linux/wireless.h includes the ioctl constants for the wireless device
manipulation.
according to that header i tried to write some code that is doing nothing more than setting the device into the mode called SIOCSIWAP. (set the ap addr)
when that completed, my card _looks_ like as if it was scanning for new AP's. i tried the same with airsnort. the behaviour of the lamps is the same with airnsnort and my code so far.

but it doesn't bind the card to the next AP when having contact to one.
how would i go further to expand the functionality of that code?
i tried several things like trigger scanning and so forth but none of them seem to work.

the header linux/netdevice.h includes a struct called iw_handler_def and a comment refers to net/iw_handler.h but i cannot find the file or even the definition of the struct in any of the headers.
maybe you know better
thanks

EDIT: i found the header in the linux kernel source code, but i still dont know what to do with the constants hardcoded there.
there is standard ioctl handler function iw_handler.