5 Commits

Author SHA1 Message Date
John Keeping
255c827ec1 rtl8723ds: fix sta_info alignment
Allocation function return memory that is properly aligned for most data
types, there is no need to manually align the buffer later.

On 64-bit systems this is particularly wrong as struct sta_info should
be 8-byte aligned so this calculation is guaranteed to misalign the
structure.  If the architecture requires aligned access, this leads to
an alignment fault and panic.

Signed-off-by: John Keeping <john@metanate.com>
2022-11-29 18:39:10 +00:00
Heinrich Schuchardt
5ce43b6183 rtl8723ds: fix rtw_mfree_stainfo()
Building with GCC 12.2 results in:

/var/lib/dkms/licheerv-rtl8723ds/1.0/build/core/rtw_sta_mgt.c:
In function ‘rtw_mfree_stainfo’:
/var/lib/dkms/licheerv-rtl8723ds/1.0/build/core/rtw_sta_mgt.c:338:25:
warning: the comparison will always evaluate as ‘true’ for
the address of ‘lock’ will never be NULL [-Waddress]
  338 |         if (&psta->lock != NULL)
      |

Remove the superfluous check.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-10-20 14:28:31 +02:00
Larry Finger
d532a1ebc5 rtl8723ds: Fix another context imbalance and some big-endian errors
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-10-25 14:11:25 -05:00
Larry Finger
c3c991544f rtl8723ds: Remove WINDOWS code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-10-16 20:43:56 -05:00
Larry Finger
e87533e664 rtl8723ds: Initial commit of files
This repository contains the Realtek driver V5.1.1.5_20523.20161209_BTCOEX20161208-1212.

At inclusion, the only changes from the Realtek version were to fix any compile
warnings or errors. With these changes, the driver builds on kernels through
4.11.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-04-25 10:13:42 -05:00