Merge pull request #282 from eenblam/fix-wifi-ap

Fix wifi.ap functionality
This commit is contained in:
Simone Margaritelli 2018-06-04 10:03:44 +02:00 committed by GitHub
commit 2f41168d99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ func (w *WiFiModule) parseApConfig() (err error) {
func (w *WiFiModule) startAp() error { func (w *WiFiModule) startAp() error {
// we need channel hopping and packet injection for this // we need channel hopping and packet injection for this
if w.Running() { if !w.Running() {
return errNoRecon return errNoRecon
} else if w.apRunning { } else if w.apRunning {
return session.ErrAlreadyStarted return session.ErrAlreadyStarted