How can I let wavelan card inform my application about new
accespoint information?
Brad Hards
bhards at bigpond.net.au
Fri Sep 19 17:16:06 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 17 Sep 2003 02:26 am, Song.Lu-1 wrote:
> hi,
> I am considering about using the wireless extension to get the access
> point information by event_driven way. So I read the source code of
> wireless extension implementation, wireless.c, and found the author used
> the ioctl means to assign the event handler. Am I right? Then I searched
> the wireless applications for Linux in the webpage :
> http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html and found
> most of them are applying the ioctl on the socket. It made me disapoint.
> Why? I have to bypass the socket because the transmission layer protocol
> which i need to implement is neither tcp nor udp. So would you please give
> me some tips that if I want to bypass the socket to apply the ioctl on the
> driver for event_driven directly, how I can do it. For example, if the card
> detects there is a new signal of access point, then it send the information
> to the driver, then some event should be trigged to call some event
> handler. Thank you very much!
I think you are confusing the ioctl() as a control channel (or perhaps netlink
as a control channel) with the tranport layer protocol (in a data channel).
Nothing about ioctl() or netlink says that any data is actually being
transferred across the channel.
For preference, use netlink with something like http://www.red-bean.com/~bos/,
although you may need to add suitable netlink code to the driver.
If you want to find out how to discover things on wireless,
http://www.kismetwireless.net/ is a good place to start for an example.
Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/aq02W6pHgIdAuOMRAoWwAJwODJRQrAtneqRJ53iyV/exx7AmQQCePQxY
b/Ndr8snWN7p96FkaNQb8iM=
=DnyT
-----END PGP SIGNATURE-----
More information about the wireless
mailing list