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.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/host/features.go') diff --git a/pkg/host/features.go b/pkg/host/features.go index 14d4f5c89..d7012e918 100644 --- a/pkg/host/features.go +++ b/pkg/host/features.go @@ -29,6 +29,7 @@ const ( FeatureUSBEmulation FeatureVhciInjection FeatureWifiEmulation + Feature802154Emulation numFeatures ) @@ -69,6 +70,7 @@ func Check(target *prog.Target) (*Features, error) { FeatureUSBEmulation: {Name: "USB emulation", Reason: unsupported}, FeatureVhciInjection: {Name: "hci packet injection", Reason: unsupported}, FeatureWifiEmulation: {Name: "wifi device emulation", Reason: unsupported}, + Feature802154Emulation: {Name: "802.15.4 emulation", Reason: unsupported}, } if noHostChecks(target) { return res, nil @@ -111,6 +113,9 @@ func Setup(target *prog.Target, features *Features, featureFlags csource.Feature if features[FeatureUSBEmulation].Enabled { args = append(args, "usb") } + if featureFlags["ieee802154"].Enabled && features[Feature802154Emulation].Enabled { + args = append(args, "802154") + } _, err := osutil.RunCmd(5*time.Minute, "", executor, args...) return err } -- cgit mrf-deployment