mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
vendor: bump github.com/mdlayher/wifi
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
278a98fee0
commit
0f7eba1dec
5
vendor/github.com/mdlayher/wifi/client_linux.go
generated
vendored
5
vendor/github.com/mdlayher/wifi/client_linux.go
generated
vendored
|
@ -5,7 +5,6 @@ package wifi
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"math"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
@ -365,9 +364,9 @@ func (info *StationInfo) parseAttributes(attrs []netlink.Attribute) error {
|
||||||
case nl80211.StaInfoTxBytes64:
|
case nl80211.StaInfoTxBytes64:
|
||||||
info.TransmittedBytes = int(nlenc.Uint64(a.Data))
|
info.TransmittedBytes = int(nlenc.Uint64(a.Data))
|
||||||
case nl80211.StaInfoSignal:
|
case nl80211.StaInfoSignal:
|
||||||
// Converted into the typical negative strength format
|
|
||||||
// * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
|
// * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
|
||||||
info.Signal = int(a.Data[0]) - math.MaxUint8
|
// Should just be cast to int8, see code here: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git/tree/station.c#n378
|
||||||
|
info.Signal = int(int8(a.Data[0]))
|
||||||
case nl80211.StaInfoRxPackets:
|
case nl80211.StaInfoRxPackets:
|
||||||
info.ReceivedPackets = int(nlenc.Uint32(a.Data))
|
info.ReceivedPackets = int(nlenc.Uint32(a.Data))
|
||||||
case nl80211.StaInfoTxPackets:
|
case nl80211.StaInfoTxPackets:
|
||||||
|
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
|
@ -103,10 +103,10 @@
|
||||||
"revisionTime": "2017-12-14T18:12:53Z"
|
"revisionTime": "2017-12-14T18:12:53Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "VrGOd/bos90JqbKuu/cTFdyWoWk=",
|
"checksumSHA1": "6HM95OVqE3M27obRphrlXgXIHNw=",
|
||||||
"path": "github.com/mdlayher/wifi",
|
"path": "github.com/mdlayher/wifi",
|
||||||
"revision": "17fb8383f38adbf6a7f12e6cbd1d461760aabf5c",
|
"revision": "ebeb58da4bc660b4882176fedcd10015f44af89c",
|
||||||
"revisionTime": "2017-09-01T18:29:50Z"
|
"revisionTime": "2018-06-01T12:43:32Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "VzutdH69PUqRqhrDVv6F91ebQd4=",
|
"checksumSHA1": "VzutdH69PUqRqhrDVv6F91ebQd4=",
|
||||||
|
|
Loading…
Reference in a new issue