Following code (opening a handel with C library dlfcn.h) was working find till
iOS 4.3.3
----------
void *handle =
dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager",
RTLD_LAZY);
int (*open)(void *) = dlsym(handle, "Apple80211Open");
int (*bind)(void *, CFStringRef) = dlsym(handle, "Apple80211BindToInterface");
int (*close)(void *) = dlsym(handle, "Apple80211Close");
int (*scan)(void *, CFArrayRef *, void *) = dlsym(handle, "Apple80211Scan");
open(&handle);
bind(handle, CFSTR("en0"));
CFDictionaryRef parameters = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFArrayRef networks;
scan(handle, &networks, parameters);
----------
With new SDK 5.0 on beta getting following error,
Is there any one who have found a solution on this?
Errors:
warning: check_safe_call: could not restore current frame
warning: Unable to restore previously selected frame.
Original issue reported on code.google.com by
tso...@gmail.comon 10 Jun 2011 at 4:23