[ethernet] Add WLAN_AP feature bit

Add the WLAN_AP feature bit to the fuchsia.hardware.ethernet Banjo and
FIDL protocols so that a parent driver can explicitly indicate that it
is a wlan interface operating in SoftAP mode. In wlanif, turn on this
feature bit if the driver has WLAN_MAC_ROLE_AP enabled. In netcfg and in
netstack's ethernet client, use the feature bit to set the interface's
DeviceClass accordingly.

Tested: fx test netstack-fidl-integration-test
Tested: fx test netstack-interfaces-fidl-test
Tested: fx test netstack-link-eth-gotests
Tested: fx test netstack-management-integration-test
Tested: fx test wlanif_unittest

Fixed: b/222322442
Bug: 95261
Change-Id: Ie068b570397ec69cf58d58b80102accddcf616ec
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/655843
Reviewed-by: Bjoern Johansson <bjoernj@google.com>
Reviewed-by: Bruno Dal Bo <brunodalbo@google.com>
API-Review: Bruno Dal Bo <brunodalbo@google.com>
Fuchsia-Auto-Submit: Amanda Tait <atait@google.com>
Reviewed-by: Tim Kilbourn <tkilbourn@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
10 files changed
tree: 7ea863a5e0b446f19fe3bc64df69368b76e68bd0
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.