summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8192u/ieee80211/dot11d.h
diff options
context:
space:
mode:
authorJohn Whitmore <johnfwhitmore@gmail.com>2018-08-08 22:00:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-27 19:17:07 +0200
commit51e1eb742745ffd3ee0960eaf20507ca2f44bb64 (patch)
treeb0eda155b4097f42482dfa858c374948083fd34f /drivers/staging/rtl8192u/ieee80211/dot11d.h
parentace3c2a23cf8170ba5d5db45d8150f9d15773fb8 (diff)
staging:rtl8192u: Replace magic number 6 with ETH_ALEN - Style
The array size 6 represents the length of an Ethernet address so the magic number has been replaced with the defined constant representing that length. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore <johnfwhitmore@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211/dot11d.h')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/dot11d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/dot11d.h b/drivers/staging/rtl8192u/ieee80211/dot11d.h
index 14879bc0fe6b..4ef609abc68b 100644
--- a/drivers/staging/rtl8192u/ieee80211/dot11d.h
+++ b/drivers/staging/rtl8192u/ieee80211/dot11d.h
@@ -20,7 +20,7 @@ struct rt_dot11d_info {
u16 country_ie_len; /* > 0 if country_ie_buf[] contains valid country information element. */
/* country_ie_src_addr u16 aligned for comparison and copy */
- u8 country_ie_src_addr[6]; /* Source AP of the country IE. */
+ u8 country_ie_src_addr[ETH_ALEN]; /* Source AP of the country IE. */
u8 country_ie_buf[MAX_IE_LEN];
u8 country_ie_watchdog;