1 #ifndef MOBILEAPPLE80211_H
2 #define MOBILEAPPLE80211_H
5 * MobileApple80211 interface for iPhone/iPod touch
6 * These functions are available from Aeropuerto.
10 typedef struct Apple80211
*Apple80211Ref
;
12 int Apple80211Open(Apple80211Ref
*ctx
);
13 int Apple80211Close(Apple80211Ref ctx
);
14 int Apple80211GetIfListCopy(Apple80211Ref handle
, CFArrayRef
*list
);
15 int Apple80211BindToInterface(Apple80211Ref handle
,
16 CFStringRef interface
);
17 int Apple80211GetInterfaceNameCopy(Apple80211Ref handle
,
19 int Apple80211GetInfoCopy(Apple80211Ref handle
,
20 CFDictionaryRef
*info
);
21 int Apple80211GetPower(Apple80211Ref handle
, char *pwr
);
22 int Apple80211SetPower(Apple80211Ref handle
, char pwr
);
24 /* parameters can be NULL; returns scan results in CFArrayRef *list;
25 * caller will need to free with CFRelease() */
26 int Apple80211Scan(Apple80211Ref handle
, CFArrayRef
*list
,
27 CFDictionaryRef parameters
);
29 int Apple80211Associate(Apple80211Ref handle
, CFDictionaryRef bss
,
30 CFStringRef password
);
31 int Apple80211AssociateAndCopyInfo(Apple80211Ref handle
, CFDictionaryRef bss
,
33 CFDictionaryRef
*info
);
36 APPLE80211_VALUE_SSID
= 1,
37 APPLE80211_VALUE_BSSID
= 9
40 int Apple80211CopyValue(Apple80211Ref handle
, int field
, CFDictionaryRef arg2
,
43 #endif /* MOBILEAPPLE80211_H */