This commit is contained in:
MaMe82 2020-02-06 00:20:54 +01:00
parent e7e5d3f7d2
commit 6c4b84a2b3
2 changed files with 14 additions and 2 deletions

11
rbuild_debug.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
echo compiling ...
env GOOS=linux GOARCH=arm GOARM=6 go build -gcflags "all=-N -l" -o build/P4wnP1_service cmd/P4wnP1_service/P4wnP1_service.go
env GOOS=linux GOARCH=arm GOARM=6 go build -o build/P4wnP1_cli cmd/P4wnP1_cli/P4wnP1_cli.go
env GOOS=linux GOARCH=arm GOARM=6 go build -o /tmp/ntest ntest.go
echo uploading ...
scp /tmp/ntest 172.16.0.1:~/P4wnP1/build
scp build/P4wnP1_service 172.16.0.1:~/P4wnP1/build
scp build/P4wnP1_cli 172.16.0.1:~/P4wnP1/build

View File

@ -503,7 +503,8 @@ type hostapdOutMonitor struct {
func (m *hostapdOutMonitor) Write(p []byte) (n int, err error) {
// if result already received, the write could exit (early out)
if m.resultReceived.IsSet() {
return n, nil
// fix endless loop of writing 'CTRL-EVENT-TERMINATING'
return len(p), nil
}
// check if buffer contains relevant strings (assume write is called line wise by the hosted process
@ -557,7 +558,7 @@ type wpaSupplicantOutMonitor struct {
func (m *wpaSupplicantOutMonitor) Write(p []byte) (n int, err error) {
// if result already received, the write could exit (early out)
if m.resultReceived.IsSet() {
return n, nil
return len(p), nil
}
// check if buffer contains relevant strings (assume write is called line wise by the hosted process