Comments (2)
got the same issue with a rpi3b+ up to date.
I need to run the commande twice to get it working
{ Error: Command failed: cat <wlan0-hostapd.conf && hostapd -B wlan0-hostapd.conf && rm -f wlan0-hostapd.conf
channel=6
hw_mode=g
interface=wlan0
ssid=RaspberryPi
wpa=2
wpa_passphrase=raspberry
at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
killed: false,
code: 1,
signal: null,
cmd:
'cat <wlan0-hostapd.conf && hostapd -B wlan0-hostapd.conf && rm -f wlan0-hostapd.conf\nchannel=6\nhw_mode=g\ninterface=wlan0\nssid=RaspberryPi\nwpa=2\nwpa_passphrase=raspberry' }
i it seems that if a AP was previously running it fail, the only solution i have find for now its to put a timeout after disable the AP because there is some latency between the disable callback and the real shutdown of the AP
hostapd.disable('wlan0', function (err1) {
console.log(err1);
setTimeout(() => {
hostapd.enable(options, function (err) {
console.log('created');
console.log(err);
});
}, 2000);
});
from wireless-tools.
Fixed this by removing driver from the options.
from wireless-tools.
Related Issues (20)
- iwconfig not working on ArchLinux
- hostapd AP doesn't stay on [RPI3] HOT 2
- Hostapd.enable not working HOT 7
- wpa_supplicant.manual,options.drivers.join is not a function 'Error'
- How To check these functionalities for hotspot?
- ifconfig support for Debian stretch HOT 3
- UTF8 names are not decoded
- maxBuffer option for iw.scan
- wpa_cli list_networks not available HOT 2
- interface word is future-reserved
- WPA types support for Access point ??
- ifconfig.status doesn't work HOT 1
- urf8 encoded SSID has length above 32 HOT 1
- wpa_cli.set_network
- iwlist scan issue
- Module not found: Can't resolve 'child_process'
- Async Callback wait
- Maintenance status? HOT 2
- TypeScript Compiler Error (TS2304) - Cannot find name 'TypeOrPromise'
- [Raspberry Pi 4] Can't Join Network using wpa_supplicant.enable(options)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireless-tools.