[Madwifi-devel] Trouble with MLME ioctl call?
Status: Beta
Brought to you by:
otaku
From: Joshua C. <jp...@ki...> - 2006-09-18 16:17:56
|
I'm trying to implement some associate/disassociate code based on the boilerplate code here: http://madwifi.org/wiki/ChipsetFeatures/Roaming When I run the code, I get an error message stating that the private ioctl call for ath0 failed. I noticed there is a comment right above the code on the website which says: "currently there are errors in these functions, somehow they do not work", so I'm not terribly surprised. I do need a workaround though. Can anyone tell me either: 1) If it is obvious to someone with more experience, why these functions don't work? 2) If it isn't obvious, how do I debug them? Is there a way to get the reason the ioctl called, rather than just 'error'? 3) Is there a work around for a user-space program? I've written a script which brings down the interface (ifconfig down, etc) and brings it back up on a specific AP, but I would rather avoid making an exec() call from my code if possible. Also, this seems slower than triggering a re-association with the interface up. -Josh -- Joshua ChaitinPollak Software Engineer Kiva Systems |