rtlwifi: rtl8821ae: Fix HW_VAR_NAV_UPPER operation
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Jul 2017 07:43:23 +0000 (10:43 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 15:42:59 +0000 (18:42 +0300)
commitd28ac7be15c70343cb270648e252f54d770eca6a
tree8e134c026f8312f31698a18631a927cf47a89a12
parentf2764f61fa10593204b0c5e4e9a68dba02112e50
rtlwifi: rtl8821ae: Fix HW_VAR_NAV_UPPER operation

The cast here is wrong.  We want to cast the pointer but we accidentally
do a no-op cast of the value.  We normally want to set us_nav_upper to
WIFI_NAV_UPPER_US (30000) but because of this bug we instead set it to
184 on little endian systems and 0 on big endian ones.

Fixes: 3c05bedb5fef ("Staging: rtl8812ae: Add Realtek 8821 PCI WIFI driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c