Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hpflea

macrumors newbie
Original poster
Oct 29, 2008
4
0
Hi, guys
I want write a application to search the airport base station, join the network with the password and search the printers in the network. How can I implement it?
Because the apple80211.framework and airportconfig.framework are both private framework, and I also can't use the reverse engineered header (e.g. apple80211.h).

Can anybody help me? Much appreciation even though a few clews.
 

Manty

macrumors member
Mar 18, 2008
32
0
Lisbon, Portugal
You can and should use the Apple80211.h header for connecting. Just link your project with the Apple80211 framework (yes it's private but you can link it).

If you need some more details just PM me.
 

hpflea

macrumors newbie
Original poster
Oct 29, 2008
4
0
Thank you. I wanna try.

---------------
You can and should use the Apple80211.h header for connecting. Just link your project with the Apple80211 framework (yes it's private but you can link it).

If you need some more details just PM me.
 

hpflea

macrumors newbie
Original poster
Oct 29, 2008
4
0
Manty,

Why are the values of noise and signal so big?
WirelessNetworkInfo:
{10 65446 65468 MAC: [00-16-01-AE-16-E9] 100 0x11 2 @@}
{06 65446 65486 MAC: [00-B0-0C-00-E7-9A] 100 0x11 4 Test}

You can see the [noise signal] value: [65446 65468], [65446 65486]. Isn't the signal strength in the range of 0 to 100?

And another question is how can I specific my ip address if it doesn't obtain dynamiclly when I join the network?

Much appreciation to you.

You can and should use the Apple80211.h header for connecting. Just link your project with the Apple80211 framework (yes it's private but you can link it).

If you need some more details just PM me.
 

Manty

macrumors member
Mar 18, 2008
32
0
Lisbon, Portugal
Why are the values of noise and signal so big?
WirelessNetworkInfo:
{10 65446 65468 MAC: [00-16-01-AE-16-E9] 100 0x11 2 @@}
{06 65446 65486 MAC: [00-B0-0C-00-E7-9A] 100 0x11 4 Test}

You can see the [noise signal] value: [65446 65468], [65446 65486]. Isn't the signal strength in the range of 0 to 100?

I've never used the signal strength but a quick Google search found gears - Google Code, and it seems that the signal strength is in dBm.
And another question is how can I specific my ip address if it doesn't obtain dynamiclly when I join the network?

You need to use SystemConfiguration.framework to change Network Preferences values. But I'm not sure what is the best way to check if you got a dynamic IP or not.
 

foidulus

macrumors 6502a
Jan 15, 2007
904
1
I've never used the signal strength but a quick Google search found gears - Google Code, and it seems that the signal strength is in dBm.


You need to use SystemConfiguration.framework to change Network Preferences values. But I'm not sure what is the best way to check if you got a dynamic IP or not.

The easiest way is to check your IP. If it starts with 169.254, you have a self-assigned IP(unless your dhcp server is serving out those addresses, which it shouldn't be....)
 

Manty

macrumors member
Mar 18, 2008
32
0
Lisbon, Portugal
The easiest way is to check your IP. If it starts with 169.254, you have a self-assigned IP(unless your dhcp server is serving out those addresses, which it shouldn't be....)

That is if you are joining an Ad hoc network...
Getting your ip can be done with getifaddrs() if that helps you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.