Commit 5e03f73f authored by Andres More's avatar Andres More Committed by Greg Kroah-Hartman

staging: vt6656: replaced MIN_PACKET_LEN with ETH_ZLEN

Removed custom macro with one from include/linux/if_ether.h.
Also removed MIN_DATA_LEN as it is not used elsewhere.
Signed-off-by: default avatarAndres More <more.andres@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 020c0a9a
...@@ -347,10 +347,9 @@ void STAvUpdateRDStatCounter(PSStatCounter pStatistic, ...@@ -347,10 +347,9 @@ void STAvUpdateRDStatCounter(PSStatCounter pStatistic,
if (WLAN_GET_FC_MOREFRAG(pHeader->wFrameCtl)) if (WLAN_GET_FC_MOREFRAG(pHeader->wFrameCtl))
pStatistic->dwRsrRxFragment++; pStatistic->dwRsrRxFragment++;
if (cbFrameLength < MIN_PACKET_LEN + 4) { if (cbFrameLength < ETH_ZLEN + 4) {
pStatistic->dwRsrRunt++; pStatistic->dwRsrRunt++;
} } else if (cbFrameLength == ETH_ZLEN + 4) {
else if (cbFrameLength == MIN_PACKET_LEN + 4) {
pStatistic->dwRsrRxFrmLen64++; pStatistic->dwRsrRxFrmLen64++;
} }
else if ((65 <= cbFrameLength) && (cbFrameLength <= 127)) { else if ((65 <= cbFrameLength) && (cbFrameLength <= 127)) {
......
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1) #define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
// Ethernet address string length // Ethernet address string length
#define MIN_DATA_LEN 46 // min data length
#define MIN_PACKET_LEN (MIN_DATA_LEN + ETH_HLEN)
// 60
// min total packet length (tx)
#define MAX_PACKET_LEN (ETH_DATA_LEN + ETH_HLEN) #define MAX_PACKET_LEN (ETH_DATA_LEN + ETH_HLEN)
// 1514 // 1514
// max total packet length (tx) // max total packet length (tx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment