From 98682e5e2aefc9aad61354f4f3ac93be96002a2a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 8 Feb 2021 08:47:37 +0100 Subject: sys/linux: add ieee802154 descriptions --- pkg/host/features_linux.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/host/features_linux.go') diff --git a/pkg/host/features_linux.go b/pkg/host/features_linux.go index fc925c00c..5c45bdcc1 100644 --- a/pkg/host/features_linux.go +++ b/pkg/host/features_linux.go @@ -33,6 +33,7 @@ func init() { checkFeature[FeatureUSBEmulation] = checkUSBEmulation checkFeature[FeatureVhciInjection] = checkVhciInjection checkFeature[FeatureWifiEmulation] = checkWifiEmulation + checkFeature[Feature802154Emulation] = check802154Emulation } func checkCoverage() string { @@ -233,6 +234,13 @@ func checkWifiEmulation() string { return requireKernel(4, 17) } +func check802154Emulation() string { + if err := osutil.IsAccessible("/sys/bus/platform/devices/mac802154_hwsim"); err != nil { + return err.Error() + } + return "" +} + func requireKernel(x, y int) string { info := new(unix.Utsname) if err := unix.Uname(info); err != nil { -- cgit mrf-deployment