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

Details

Provenance
reaAuthored on Wed, Jan 29, 9:56 PM
wulfCommitted on Wed, Jan 29, 9:56 PM
Parents
rGf466ba4ca479: Refactor iwmbtfw: set default firmware_dir after argument parsing
Branches
Unknown
Tags
Unknown