HomeFreeBSD

urtwn(4): add error handling for urtwn_write_X() functions.

Description

urtwn(4): add error handling for urtwn_write_X() functions.

  • Call ieee80211_stop() when urtwn_init() fails

(i.e., stop vap explicitly)

  • Return an error when urtwn_write_<smth>() fails.
  • Handle errors from them in:
    • urtwn_fw_cmd();
    • urtwn_llt_write();
    • urtwn_efuse_*();
    • urtwn_*_power_on();
    • urtwn_*_dma_init();
    • urtwn_mac_init();
    • urtwn_init();

Tested with RTL8188EU, STA mode

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4291

Details

Provenance
avosAuthored on
Reviewer
kevlo
Differential Revision
D4291: urtwn(4): add error handling for urtwn_write_X() functions
Parents
rS291697: Avoid -Wmissing-initializer
Branches
Unknown
Tags
Unknown