From 9c171735da68916b067bc039270daf0336a94e4c Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 16 Mar 2019 17:24:37 +0100 Subject: [PATCH] fix: added handshake information for wifi aps in api.rest --- network/wifi_ap.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/network/wifi_ap.go b/network/wifi_ap.go index 57490122..afaf9c14 100644 --- a/network/wifi_ap.go +++ b/network/wifi_ap.go @@ -16,7 +16,8 @@ type AccessPoint struct { type apJSON struct { *Station - Clients []*Station `json:"clients"` + Clients []*Station `json:"clients"` + Handshake bool `json:"handshake"` } func NewAccessPoint(essid, bssid string, frequency int, rssi int8) *AccessPoint { @@ -31,8 +32,9 @@ func (ap *AccessPoint) MarshalJSON() ([]byte, error) { defer ap.Unlock() doc := apJSON{ - Station: ap.Station, - Clients: make([]*Station, 0), + Station: ap.Station, + Clients: make([]*Station, 0), + Handshake: ap.withKeyMaterial, } for _, c := range ap.clients {