HomeFreeBSD

urtwn: optimize rate lookup in the urtwn_ra_init()

Description

urtwn: optimize rate lookup in the urtwn_ra_init()

Replace loop with switch statement (rate2ridx())
(should be noop).

Tested with RTL8188EU / RTL8188CUS, STA mode.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D4848 (rebased)

Details

Provenance
avosAuthored on
Reviewer
adrian
Parents
rS298435: Yet more redundant parenthesis from r298431.
Branches
Unknown
Tags
Unknown