refact: big refactoring and improvements of wifi.* modules

This commit is contained in:
evilsocket 2018-02-20 18:14:38 +01:00
commit da5d1d46d4
6 changed files with 266 additions and 123 deletions

View file

@ -2,18 +2,16 @@ package network
type Station struct {
*Endpoint
IsAP bool
Frequency int
RSSI int8
Sent uint64
Received uint64
Encryption string
Frequency int `json:"frequency"`
RSSI int8 `json:"rssi"`
Sent uint64 `json:"sent"`
Received uint64 `json:"received"`
Encryption string `json:"encryption"`
}
func NewStation(essid, bssid string, isAp bool, frequency int, rssi int8) *Station {
func NewStation(essid, bssid string, frequency int, rssi int8) *Station {
return &Station{
Endpoint: NewEndpointNoResolve(MonitorModeAddress, bssid, essid, 0),
IsAP: isAp,
Frequency: frequency,
RSSI: rssi,
}