CoreWLAN enum changes
CoreWLAN enum changes
- Subject: CoreWLAN enum changes
- From: Erik Tkal <email@hidden>
- Date: Wed, 01 Jun 2011 12:20:15 -0400
- Acceptlanguage: en-US
- Thread-topic: CoreWLAN enum changes
Testing our supplicant code on the latest Mac OS X 10.7 developer preview I was unable to associate to my WPA2-Personal SSID, which worked on developer preview 1. Our log showed a security mode mismatch, leading me to think some OS constants had changed (the value reported by the OS was what we thought was WPA-Enterprise).
Installing the latest Xcode preview 4.1 I found that this was indeed the case.
Current Xcode (3.2) CWGlobals.h has:
typedef enum
{
kCWSecurityModeOpen = 0,
kCWSecurityModeWEP,
kCWSecurityModeWPA_PSK,
kCWSecurityModeWPA2_PSK,
kCWSecurityModeWPA_Enterprise,
kCWSecurityModeWPA2_Enterprise,
kCWSecurityModeWPS,
kCWSecurityModeDynamicWEP
} CWSecurityMode;
Newer Xcode (4.1) CWGlobals.h now includes CoreWLANTypes.h, which has:
enum {
kCWSecurityNone = 0,
kCWSecurityWEP = 1,
kCWSecurityWPAPersonal = 2,
kCWSecurityWPAPersonalMixed = 3,
kCWSecurityWPA2Personal = 4,
kCWSecurityPersonal = 5,
kCWSecurityDynamicWEP = 6,
kCWSecurityWPAEnterprise = 7,
kCWSecurityWPAEnterpriseMixed = 8,
kCWSecurityWPA2Enterprise = 9,
kCWSecurityEnterprise = 10,
kCWSecurityUnknown = NSIntegerMax,
};
...
enum
{
kCWSecurityModeOpen = kCWSecurityNone,
kCWSecurityModeWEP = kCWSecurityWEP,
kCWSecurityModeWPA_PSK = kCWSecurityWPAPersonal,
kCWSecurityModeWPA2_PSK = kCWSecurityWPA2Personal,
kCWSecurityModeDynamicWEP = kCWSecurityDynamicWEP,
kCWSecurityModeWPA_Enterprise = kCWSecurityWPAEnterprise,
kCWSecurityModeWPA2_Enterprise = kCWSecurityWPA2Enterprise,
kCWSecurityModeWPS = 8,
};
typedef NSInteger CWSecurityMode;
Of course this totally breaks current apps that use these constants when run on the latest Lion code, unless recompiled using the newer Xcode (and then that code will not operate on OS X 10.6).
Can anyone point to a list of related changes that might affect users of CoreWLAN, or is there a better forum in which to ask this?
Thanks.
....................................
Erik Tkal
Juniper OAC/UAC/Pulse Development
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden