mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8d2f0af82b
commit
d95373bfa8
6 changed files with 22 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
|||
package network
|
||||
|
||||
type WiFiStation struct {
|
||||
type Station struct {
|
||||
*Endpoint
|
||||
IsAP bool
|
||||
Channel int
|
||||
|
@ -10,8 +10,8 @@ type WiFiStation struct {
|
|||
Encryption string
|
||||
}
|
||||
|
||||
func NewWiFiStation(essid, bssid string, isAp bool, channel int, rssi int8) *WiFiStation {
|
||||
return &WiFiStation{
|
||||
func NewStation(essid, bssid string, isAp bool, channel int, rssi int8) *Station {
|
||||
return &Station{
|
||||
Endpoint: NewEndpointNoResolve(MonitorModeAddress, bssid, essid, 0),
|
||||
IsAP: isAp,
|
||||
Channel: channel,
|
||||
|
@ -19,10 +19,10 @@ func NewWiFiStation(essid, bssid string, isAp bool, channel int, rssi int8) *WiF
|
|||
}
|
||||
}
|
||||
|
||||
func (s WiFiStation) BSSID() string {
|
||||
func (s Station) BSSID() string {
|
||||
return s.HwAddress
|
||||
}
|
||||
|
||||
func (s *WiFiStation) ESSID() string {
|
||||
func (s *Station) ESSID() string {
|
||||
return s.Hostname
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue