Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

The module CWGlobalsMBS

module CWGlobalsMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
module Network MBS MacFrameworks Plugin 11.0 Yes No No Yes, macOS only No
Function: The module for the global constants.
Notes: Please note that MBS Plugin implements all methods from 10.6 to 10.9 in CoreWLAN. But Apple changes things often, so some methods are only for older system, some only for newer. e.g. kCWErrorDomain is for 10.6 and CWErrorDomain for 10.7 and newer.

Feedback, Comments & Corrections

Error Codes

Constant Value Description
kCWAPFullErr -3913 Access point is unable to handle another associated station.
kCWAssociationDeniedErr -3909 Association was denied for an unspecified reason.
kCWAuthAlgUnsupportedErr -3910 Specified authentication algorithm is not supported.
kCWAuthenticationAlgorithmUnsupportedErr -3910 Specified authentication algorithm is not supported.
kCWChallengeFailureErr -3912 Authentication was rejected because of a challenge failure.
kCWCipherSuiteRejectedErr -3923 Cipher suite rejected due to network security policy.
kCWDSSSOFDMUnsupportedErr -3916 Association denied because DSSS-OFDM is not supported by requesting station.
kCWEAPOLErr 1 EAPOL-related error.
kCWErr -3931 Generic error, no specific error code exists to describe the error condition.
kCWFormatErr -3904 Invalid protocol element field detected.
kCWHTFeaturesNotSupportedErr -3926 Association was denied because the requesting station does not support HT features.
kCWInvalidAKMPErr -3920 Invalid authentication selector requested.
kCWInvalidAuthenticationSequenceNumberErr -3911 Authentication frame received with an authentication sequence number out of expected sequence.
kCWInvalidAuthSeqNumErr -3911 Authentication frame received with an authentication sequence number out of expected sequence.
kCWInvalidFormatErr -3904 Invalid protocol element field detected.
kCWInvalidGroupCipherErr -3918 Invalid group cipher requested.
kCWInvalidInfoElementErr -3917 Invalid information element included in association request.
kCWInvalidInformationElementErr -3917 Invalid information element included in association request.
kCWInvalidPairwiseCipherErr -3919 Invalid pairwise cipher requested.
kCWInvalidParameterErr -3900 Parameter error.
kCWInvalidPMKErr -3924 PMK rejected by the access point.
kCWInvalidRSNCapabilitiesErr -3922 Invalid RSN capabilities specified in association request.
kCWIPCFailureErr -3929 Error communicating with a separate process.
kCWNoErr 0 Success.
kCWNoMemErr -3901 Memory allocation failed.
kCWNoMemoryErr -3901 Memory allocation failed.
kCWNotSupportedErr -3903 Operation not supported.
kCWOperationNotPermittedErr -3930 Calling process does not have permission to perform this operation.
kCWParamErr -3900 Parameter error.
kCWPCOTransitionTimeNotSupportedErr -3927 Association was denied because the requesting station does not support the PCO transition time required by the AP.
kCWReassociationDeniedErr -3908 Reassociation was denied because the access point was unable to determine that an association exists.
kCWReferenceNotBoundErr -3928 No interface is bound to the CWInterface.
kCWRefNotBoundErr -3928 No interface is bound to the CWInterface.
kCWShortSlotUnsupportedErr -3915 Association denied because short slot time option is not supported by requesting station.
kCWSupplicantTimeoutErr -3925 WPA/WPA2 handshake timed out.
kCWTimeoutErr -3905 Authentication/Association timed out.
kCWUknownErr -3902 Unexpected error condition encountered for which no error code exists.
kCWUnknownErr -3902 Unexpected error condition encountered for which no error code exists.
kCWUnspecifiedFailureErr -3906 Access point did not specify a reason for authentication/association failure.
kCWUnsupportedCapabilitiesErr -3907 Access point cannot support all requested capabilities.
kCWUnsupportedRateSetErr -3914 Interface does not support all of the rates in the access point's basic rate set.
kCWUnsupportedRSNVersionErr -3921 Invalid WPA/WPA2 version specified.

Channel bands

Constant Value Description
kCWChannelBand2GHz 1 2 GHz channel band.
kCWChannelBand5GHz 2 5 GHz channel band.
kCWChannelBandUnknown 0 Unknown channel band.

Channel Widths

Constant Value Description
kCWChannelWidth160MHz 4 160MHz channel width.
kCWChannelWidth20MHz 1 20MHz channel width.
kCWChannelWidth40MHz 2 40MHz channel width.
kCWChannelWidth80MHz 3 80MHz channel width.
kCWChannelWidthUnknown 0 Unknown channel width.

Chipher Key Flahs

Constant Value Description
kCWCipherKeyFlagsMulticast 4 Cipher key will be used for multicast packets.
kCWCipherKeyFlagsNone 0 Open System authentication.
kCWCipherKeyFlagsRx 16 Cipher key will be used for packets received by the interface.
kCWCipherKeyFlagsTx 8 Cipher key will be used for packets sent from the interface.
kCWCipherKeyFlagsUnicast 2 Cipher key will be used for unicast packets.

IBSS mode security types

Constant Value Description
kCWIBSSModeSecurityNone 0 Open System authentication.
kCWIBSSModeSecurityWEP104 2 WPA Personal authentication.
kCWIBSSModeSecurityWEP40 1 WEP security.

Interface operation modes

Constant Value Description
kCWInterfaceModeHostAP 3 Interface is participating in an infrastructure network as an access point.
kCWInterfaceModeIBSS 2 Interface is participating in an IBSS network.
kCWInterfaceModeNone 0 Interface is not in any mode.
kCWInterfaceModeStation 1 Interface is participating in an infrastructure network as a non-AP station.

Keychain Domains

Constant Value Description
kCWKeychainDomainNone 0 No keychain domain specified.
kCWKeychainDomainSystem 2 The system keychain domain.
kCWKeychainDomainUser 1 The login (user) keychain domain.

Physical Layer Modes

Constant Value Description
kCWPHYMode11a 1 IEEE 802.11a PHY.
kCWPHYMode11ac 5 IEEE 802.11ac PHY.
kCWPHYMode11b 2 IEEE 802.11b PHY.
kCWPHYMode11g 3 IEEE 802.11g PHY.
kCWPHYMode11n 4 IEEE 802.11n PHY.
kCWPHYModeNone 0 No PHY mode.

Security types

Constant Value Description
kCWSecurityDynamicWEP 6 Dynamic WEP security.
kCWSecurityEnterprise 10 Enterprise authentication.
kCWSecurityNone 0 Open System authentication.
kCWSecurityPersonal 5 Personal authentication.
kCWSecurityUnknown &h7FFFFFFF Unknown security type.
kCWSecurityWEP 1 WEP security.
kCWSecurityWPA2Enterprise 9 WPA2 Enterprise authentication.
kCWSecurityWPA2Personal 4 WPA2 Personal authentication.
kCWSecurityWPAEnterprise 7 WPA Enterprise authentication.
kCWSecurityWPAEnterpriseMixed 8 WPA/WPA2 Enterprise authentication.
kCWSecurityWPAPersonal 2 WPA Personal authentication.
kCWSecurityWPAPersonalMixed 3 WPA/WPA2 Personal authentication.

Some examples which use this module:


The items on this page are in the following plugins: MBS MacFrameworks Plugin.





Links
MBS FileMaker blog