]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable Frame_QoSTID
authorTree Davies <tdavies@darkphysics.net>
Tue, 21 May 2024 03:17:13 +0000 (20:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:16:21 +0000 (13:16 +0200)
Rename variable Frame_QoSTID to frame_qos_tid
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-27-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_rx.c

index 4fec36cfa2fc4e4d66501738e7800192a413336f..b88c7cd399fbdcffc895d6651dbdc980b78736bd 100644 (file)
@@ -799,7 +799,7 @@ static inline const char *eap_get_type(int type)
                 eap_types[type];
 }
 
-static inline u8 Frame_QoSTID(u8 *buf)
+static inline u8 frame_qos_tid(u8 *buf)
 {
        struct ieee80211_hdr_3addr *hdr;
        u16 fc;
index 2d0a0efedc97eaadb1726da2e49c446ac7f3cdbe..22c04f37bb40622cc8e845ff2cb3f45b0b2970cd 100644 (file)
@@ -888,7 +888,7 @@ static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,
                struct rx_ts_record *ts = NULL;
 
                if (rtllib_get_ts(ieee, (struct ts_common_info **)&ts, hdr->addr2,
-                       (u8)Frame_QoSTID((u8 *)(skb->data)), RX_DIR, true)) {
+                       (u8)frame_qos_tid((u8 *)(skb->data)), RX_DIR, true)) {
                        if ((fc & (1 << 11)) && (frag == ts->rx_last_frag_num) &&
                            (WLAN_GET_SEQ_SEQ(sc) == ts->rx_last_seq_num))
                                return -1;
@@ -1321,7 +1321,7 @@ static int rtllib_rx_infra_adhoc(struct rtllib_device *ieee, struct sk_buff *skb
        hdr = (struct ieee80211_hdr *)skb->data;
        if (ieee->current_network.qos_data.active && IsQoSDataFrame(skb->data)
                && !is_multicast_ether_addr(hdr->addr1)) {
-               TID = Frame_QoSTID(skb->data);
+               TID = frame_qos_tid(skb->data);
                SeqNum = WLAN_GET_SEQ_SEQ(sc);
                rtllib_get_ts(ieee, (struct ts_common_info **)&ts, hdr->addr2, TID,
                      RX_DIR, true);