unixpickle / JamWiFi

A GUI, easy to use WiFi network jammer for Mac OS X
780 stars 148 forks source link

channel hopping error #8

Closed JiantaoFu closed 8 years ago

JiantaoFu commented 8 years ago
            if (hopChannel) {
                NSError *err = nil;
                [[interface interface] setWLANChannel:hopChannel error:&err];
                hopChannel = nil;
            }

(NSError *) $0 = 0x0000600000051c40 domain: @"com.apple.wifi.apple80211API.error" - code: 18446744073709547713

JiantaoFu commented 8 years ago

Moving disassociate into initWithInterface and use - (BOOL)setChannel:(NSInteger)channel fix this problem

unixpickle commented 8 years ago

It would be awesome if you could submit a pull request.