]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable CountryIeBuf
authorTree Davies <tdavies@darkphysics.net>
Tue, 21 May 2024 03:16:49 +0000 (20:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:16:19 +0000 (13:16 +0200)
Rename variable CountryIeBuf to country_ie_buf
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240521031718.17852-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c

index 0809af3fd041f9eb4d60ebe4428da52b475d08ce..8a84d61e6912a08ab619567164bd0b7c423600b1 100644 (file)
@@ -950,7 +950,7 @@ struct rtllib_network {
        struct rtllib_wmm_ac_param wmm_param[4];
        u8 turbo_enable;
        u16 CountryIeLen;
-       u8 CountryIeBuf[MAX_IE_LEN];
+       u8 country_ie_buf[MAX_IE_LEN];
        struct bss_ht bssht;
        bool broadcom_cap_exist;
        bool realtek_cap_exit;
index 4a0db2dfd5e927fa486607c4aa849f09c41bb214..dc0db6fade0fad57fbb25119233d40fa4d1398f4 100644 (file)
@@ -2184,7 +2184,7 @@ static inline int rtllib_network_init(
        network->SignalStrength = stats->SignalStrength;
        network->RSSI = stats->SignalStrength;
        network->CountryIeLen = 0;
-       memset(network->CountryIeBuf, 0, MAX_IE_LEN);
+       memset(network->country_ie_buf, 0, MAX_IE_LEN);
        ht_initialize_bss_desc(&network->bssht);
        network->flags |= NETWORK_HAS_CCK;
 
@@ -2343,7 +2343,7 @@ static inline void update_network(struct rtllib_device *ieee,
        dst->turbo_enable = src->turbo_enable;
 
        dst->CountryIeLen = src->CountryIeLen;
-       memcpy(dst->CountryIeBuf, src->CountryIeBuf, src->CountryIeLen);
+       memcpy(dst->country_ie_buf, src->country_ie_buf, src->CountryIeLen);
 
        dst->bWithAironetIE = src->bWithAironetIE;
        dst->ckip_supported = src->ckip_supported;