modules/wifi: fix SetSnapLen error message text

This commit is contained in:
Robin B 2019-12-07 16:08:09 +01:00 committed by GitHub
commit 524e91af3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,7 +491,7 @@ func (mod *WiFiModule) Configure() error {
if err = ihandle.SetRFMon(true); err != nil {
return fmt.Errorf("error while setting interface %s in monitor mode: %s", tui.Bold(ifName), err)
} else if err = ihandle.SetSnapLen(65536); err != nil {
return fmt.Errorf("error while settng span len: %s", err)
return fmt.Errorf("error while settng snapshot length: %s", err)
}
/*
* We don't want to pcap.BlockForever otherwise pcap_close(handle)