jarry622 / iphone-wireless

Automatically exported from code.google.com/p/iphone-wireless
0 stars 0 forks source link

Apple80211 gone from 3.0b2 #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Apple have replaced Apple80211 with something called MobileWiFi which has
completely different methods. e.g.

_WiFiManagerClientCreate
_WiFiManagerClientScheduleWithRunLoop
_WiFiManagerClientSetType
_WiFiManagerClientCopyDevices
_WiFiDeviceClientRegisterPowerCallback
_WiFiDeviceClientRegisterLinkCallback
_WiFiDeviceClientGetInterfaceName
_WiFiManagerClientCopyProperty
_WiFiDeviceClientScanAsync
static void
CLWifiService::onWiFiDeviceClientScanCallback(__WiFiDeviceClient*, const
__CFArray*, WiFiError, void*)   // (used in locationd)

I can't figure out the params to the create method right now.

Original issue reported on code.google.com by indieki...@gmail.com on 4 Apr 2009 at 1:34

GoogleCodeExporter commented 8 years ago
i've also noticed this, and i could not get access on the beta 2 yet :(

Original comment by Sean7...@gmail.com on 13 Apr 2009 at 12:08

GoogleCodeExporter commented 8 years ago
You need a special entitlement now, I wonder if Apple plan to sell it?

Original comment by indieki...@gmail.com on 13 Apr 2009 at 6:31

GoogleCodeExporter commented 8 years ago
What do you mean, special entitlement... how do you know that?

Original comment by jon.l...@gmail.com on 13 Apr 2009 at 9:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Can I ask how to do it?
I've been trying to implement WiFi-scan application on 3.0.

Original comment by yuuichi....@gmail.com on 14 Apr 2009 at 12:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It must be possible, since you just updated WiFiFoFum to be 3.0 compatible ;-)

Original comment by tmm...@gmail.com on 4 Jun 2009 at 2:29

GoogleCodeExporter commented 8 years ago
It is possible...  It is even trivial.   If you have an app for 2.2.1 that uses 
the
Apple80211.framework, the fix is so easy you'll slap yourself on the back of 
the head
for 10 minutes... :-)  

Change this line:
libHandle =
dlopen("/System/Library/PrivateFrameworks/Apple80211.framework/Apple80211", 
RTLD_LAZY);

To This line:

libHandle =
dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", 
RTLD_LAZY);

Leave everything else the same, and enjoy.  You'll notice that there are some 
minor
differences in the data you get back, but, for the most part, everything should 
work
the same, and your app should start to function again using 3.0.   This has been
tested on 3.0GM.

Enjoy.

Original comment by da...@infomind.com on 20 Jun 2009 at 11:36

GoogleCodeExporter commented 8 years ago
Hi guys,

I have some problem implementing wifi scanning.

when the code reaches:
open(libhandle,&airporthandle);

there will be an error:

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
iPhone Simulator 3.0 (138), iPhone OS 3.0 (7A341)

Please help me,thank you.

Original comment by hoopsan...@gmail.com on 29 Jun 2009 at 4:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You cannot run it on simulator. dlopen returns NULL.
I confirmed wifi scanning works on both iPhone 3G (OS 3.0) and 3GS.

Original comment by yuuichi....@gmail.com on 29 Jun 2009 at 5:57

GoogleCodeExporter commented 8 years ago
Yuuichi, thanks for your response.

I tried to run in the device(3.0) but it stll shows EXEC ERROR.

Original comment by hoopsan...@gmail.com on 30 Jun 2009 at 7:42

GoogleCodeExporter commented 8 years ago
hoopsanity, first confirm that you are using all functions properly and check 
the
handle value too. It is working for me smoothly in the device(3.*).

Best of luck.

Original comment by tso...@gmail.com on 28 Aug 2009 at 4:01

GoogleCodeExporter commented 8 years ago
hi, i'm newbie for iphone dev., i have task to get wifi info such as ssid, 
signal 
strength and so on, when i search i get about stumbler, i get the source code 
and 
try to implement into xcode, but getting error, can i import the src into xcode 
and 
what are the settings i need to do, i would like to know the steps to import 
the 
stumbler src so its can work on device 3.1.2,

i'm using mac os 10.5.8 with xcode ver 3.1.4 and ipod touch 2g 3.1.2

is it any possible to run this stumbler on my ipod

thanks

Original comment by mimosi...@gmail.com on 29 Oct 2009 at 4:30

GoogleCodeExporter commented 8 years ago
i change to the following 
libHandle =
dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", 
RTLD_LAZY);

and install in my ipod touch 3.1.2, application install but when launch it, it 
crash,
do i have only as the above or do have modify any handle, 

open  = dlsym(libHandle, “Apple80211Open”);
bind  = dlsym(libHandle, “Apple80211BindToInterface”);
close = dlsym(libHandle, “Apple80211Close”);
associate = dlsym(libHandle, “Apple80211Associate”);
scan  = dlsym(libHandle, “Apple80211Scan”);

is the above functions still same for new WiFiManager.bundle, can anyone help me

Original comment by mobile...@gmail.com on 6 Nov 2009 at 10:09

GoogleCodeExporter commented 8 years ago
I'm not sure if I'm doing this right, but I tried simply copying the files
Apple80211/Apple80211.h and Apple80211/main.c into my XCode project, but when I 
ran
it it said it cannot find some bundle called Aeropuerto. Am I doing something 
wrong?

Original comment by sfoley1988 on 24 May 2010 at 12:57