diff options
author | Tree Davies <tdavies@darkphysics.net> | 2024-05-20 20:16:49 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-04 13:16:19 +0200 |
commit | 7b66b9d83a352fc6220bfcee4973fa0a0a411a28 (patch) | |
tree | 126872833831eaceb1053449632e84092008e072 /drivers | |
parent | 63b109b1f575c4b1c4f51c58c7b54c39179e0626 (diff) |
Staging: rtl8192e: Rename variable CountryIeBuf
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib.h | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_rx.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 0809af3fd041..8a84d61e6912 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -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; diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 4a0db2dfd5e9..dc0db6fade0f 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -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; |