HomeFreeBSD

Refactor iwmbtfw: modularize and de-constify

Description

Refactor iwmbtfw: modularize and de-constify

  • Move logic for firmware download into different adapter types to the own functions to allow main() to be simpler
  • Use enums/typedefs for exit modes, image types, etc
  • Purge most obvious comments: functions are named properly, so most of their invocations self-document the code.

Signed-off-by: Eygene Ryabinkin <rea@FreeBSD.org>
Reviewed by: wulf
MFC after: 1 month

(cherry picked from commit 06969db312022277729dd144e3655a90007306ef)

Details

Provenance
reaAuthored on Jan 29 2025, 9:56 PM
wulfCommitted on Mar 1 2025, 9:36 AM
Parents
rGd3f637b744e2: Refactor iwmbtfw: set default firmware_dir after argument parsing
Branches
Unknown
Tags
Unknown