forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/atmel/atmel.c
....@@ -798,7 +798,6 @@
798798
799799 static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev)
800800 {
801
- static const u8 SNAP_RFC1024[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
802801 struct atmel_private *priv = netdev_priv(dev);
803802 struct ieee80211_hdr header;
804803 unsigned long flags;
....@@ -853,7 +852,7 @@
853852 }
854853
855854 if (priv->use_wpa)
856
- memcpy(&header.addr4, SNAP_RFC1024, ETH_ALEN);
855
+ memcpy(&header.addr4, rfc1042_header, ETH_ALEN);
857856
858857 header.frame_control = cpu_to_le16(frame_ctl);
859858 /* Copy the wireless header into the card */
....@@ -1228,7 +1227,7 @@
12281227
12291228 case ISR_RxFRAMELOST:
12301229 priv->wstats.discard.misc++;
1231
- /* fall through */
1230
+ fallthrough;
12321231 case ISR_RxCOMPLETE:
12331232 rx_done_irq(priv);
12341233 break;
....@@ -4229,7 +4228,7 @@
42294228 /* Copyright 2003 Matthew T. Russotto */
42304229 /* But derived from the Atmel 76C502 firmware written by Atmel and */
42314230 /* included in "atmel wireless lan drivers" package */
4232
-/**
4231
+/*
42334232 This file is part of net.russotto.AtmelMACFW, hereto referred to
42344233 as AtmelMACFW
42354234