mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
refact: big refactoring and improvements of wifi.* modules
This commit is contained in:
parent
d0d3ce3ec7
commit
da5d1d46d4
6 changed files with 266 additions and 123 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue