- Add error handling for urtwn_(r88e)_read_rom() and urtwn_efuse_*() functions.
- Remove code duplication between urtwn_efuse_read() and urtwn_r88e_read_rom().
- Merge r88e_rom and (r92c_)rom structures (only one of them can be used at the same time).
- Other minor fixes / improvements.
Details
Details
- Reviewers
kevlo adrian - Commits
- rS291264: urtwn(4): rework ROM reading.
Tested with RTL8188EU (URTWN_DEBUG + USB_DEBUG, hw.usb.urtwn.debug=3, no visual differences), STA mode.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Merging r88e_rom and (r92c_)rom structures looks good, but the rest gets more
complicated. For example, the original function doesn't need that error
handling since the length won't exceed URTWN_EFUSE_MAX_LEN while reading
data from efuse.
Comment Actions
Remove unneded (sc->last_rom_addr == URTWN_EFUSE_MAX_LEN) checking in urtwn_efuse_read().