diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2017-01-19 14:28:08 -0600 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-01-20 12:06:10 +0200 |
commit | 106e0deca1ac6ac627a10617fe77a95200cb01a7 (patch) | |
tree | 34ea5ce0952c1122cca17117817519cd96e441e3 | |
parent | 69d8597e9fe5ca76da8ad18245d51af96cf8457a (diff) |
rtlwifi: rtl8192cu: Convert driver to use common macros
These drivers use a set of complicated macros to extract and insert
information for the RX and TX descriptors. Driver rtl8192cu had a
different set than was used for the PCI-based drivers. To simplify
the code, rtl8192cu is switched to use the common version. In the
process, two errors in those common macros were found and fixed.
Besides simplifying the code, there is an additional benefit. We have
no BE hardware to test the PCI driver, but using the common macros
provides an additional test for the validity of many endian-sensitive
operations.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>