Hi, I have to do some modification in madwifi driver.

i wanna know the functions/interfaces whice i can call to:
1.scan the access point around.
2.get the scanning result.
3.connect to the specified access point.

i have got the source code now. but i have no idea how to use the interfaces.

for example, i find lots of "ioctl" in ieee80211_wireless.c such as:
ieee80211_ioctl_siwrate
ieee80211_ioctl_giwrate
ieee80211_ioctl_siwscan
ieee80211_ioctl_giwscan
and so on.

so did any one ever do any research on madwifi driver and could you provide some documents or specification to help? thanks a loooooooooot^_____^