OS X 10.9, iMac

When I assert an IBSS ad-hoc network programmatically, it works fine when
the channel number is from 1 - 11. However, if I attempt the same code
with any of the channels 36 40 44 48 52 56 60 64 100 104 108 112 116 120
124 128 132 136 140 149 153 157 161 165 it doesn't. There is no indication
of any error or failure, but no ad-hoc network is established. What am I
doing wrong?

-Carl


    NSLog(@"Interface: %@",[CWInterface interface ]);
    NSError *error = nil;
    BOOL success = [[CWInterface interface ] startIBSSModeWithSSID:
@"MyAdhocNet"
                                                    security:
kCWIBSSModeSecurityWEP104
                                                     channel: channel
                                                    password: password
                                                       error: &error ];
    NSLog(@"Status: %@",error);
    if ( success ) {
        return [ self waitForIPaddress ];
    }

Interface: <CWInterface: 0x1004008a0> [interfaceName=en1]
Status: (null)
Return value: TRUE



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to