staging: rtl8188eu: use ETH_ALEN
authorMichael Straube <straube.linux@gmail.com>
Tue, 29 Sep 2020 06:28:43 +0000 (08:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 08:57:07 +0000 (10:57 +0200)
Use ETH_ALEN instead of hard coded array size.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200929062847.23985-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/rtw_security.h

index bfa080d..737f1da 100644 (file)
@@ -82,7 +82,7 @@ union Keytype {
 
 struct rt_pmkid_list {
        u8      bUsed;
-       u8      bssid[6];
+       u8      bssid[ETH_ALEN];
        u8      PMKID[16];
        u8      SsidBuf[33];
        u8      *ssid_octet;