wifiutil

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package wifiutil provides helper functions for the wificell package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectFirstErr

func CollectFirstErr(ctx context.Context, firstErr *error, err error)

CollectFirstErr collects the first error into firstErr and logs the others. This can be useful when you have several steps in a function but cannot early return on error. e.g. cleanup functions.

func CommonAPOptions

func CommonAPOptions(extraOps ...hostapd.Option) []hostapd.Option

CommonAPOptions generates a set of options with common settings on protocol and channel appended with given extra options. This function is useful for the tests which don't quite care about the protocol used but need to set some other options like SSID or security.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL