aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/features.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-02-08 08:47:37 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-02-12 18:09:14 +0100
commit98682e5e2aefc9aad61354f4f3ac93be96002a2a (patch)
tree04d0977ddcf677cc32fe7c8376e79765058406be /pkg/host/features.go
parent394d4bf77bc71747a74968f49ef153a8c9ff0cd4 (diff)
sys/linux: add ieee802154 descriptions
Diffstat (limited to 'pkg/host/features.go')
-rw-r--r--pkg/host/features.go5
1 files changed, 5 insertions, 0 deletions
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
}