HomeFreeBSD

bnxt(4): Fix bugs in WOL support.

Description

bnxt(4): Fix bugs in WOL support.

Before this change driver reported IFCAP_WOL_MAGIC enabled, but not
supported. It caused errors on some SIOCSIFCAP calls. Instead
report the support if hardware supports WOL, and enabled status if
it has such filter installed on boot.

Also bnxt_wol_config() should check WOL status in if_getcapenable(),
not in if_getcapabilities() to get current one.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on Sep 2 2021, 10:11 PM
Parents
rG4c7a3a70e047: loader.efi: fix console output after BS off
Branches
Unknown
Tags
Unknown