All of lore.kernel.org
 help / color / mirror / Atom feed
From: Malcolm Priestley <tvboxspy@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-wireless@vger.kernel.org, Malcolm Priestley <tvboxspy@gmail.com>
Subject: [PATCH 18/34] staging: vt6656: decode remove tether.c/h
Date: Wed, 25 Jun 2014 21:19:55 +0100	[thread overview]
Message-ID: <1403727611-6825-19-git-send-email-tvboxspy@gmail.com> (raw)
In-Reply-To: <1403727611-6825-1-git-send-email-tvboxspy@gmail.com>

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
 drivers/staging/vt6656/80211mgr.c |   1 -
 drivers/staging/vt6656/Makefile   |   1 -
 drivers/staging/vt6656/baseband.c |   1 -
 drivers/staging/vt6656/baseband.h |   1 -
 drivers/staging/vt6656/desc.h     |   2 -
 drivers/staging/vt6656/device.h   |   1 -
 drivers/staging/vt6656/dpc.c      |   1 -
 drivers/staging/vt6656/key.h      |   1 -
 drivers/staging/vt6656/mac.c      |   1 -
 drivers/staging/vt6656/main_usb.c |   1 -
 drivers/staging/vt6656/rxtx.c     |   1 -
 drivers/staging/vt6656/tether.c   |  60 ----------------------
 drivers/staging/vt6656/tether.h   | 101 --------------------------------------
 13 files changed, 173 deletions(-)
 delete mode 100644 drivers/staging/vt6656/tether.c
 delete mode 100644 drivers/staging/vt6656/tether.h

diff --git a/drivers/staging/vt6656/80211mgr.c b/drivers/staging/vt6656/80211mgr.c
index 48baef9..09bfe24 100644
--- a/drivers/staging/vt6656/80211mgr.c
+++ b/drivers/staging/vt6656/80211mgr.c
@@ -51,7 +51,6 @@
 
 #include "device.h"
 #include "tmacro.h"
-#include "tether.h"
 #include "80211mgr.h"
 #include "80211hdr.h"
 
diff --git a/drivers/staging/vt6656/Makefile b/drivers/staging/vt6656/Makefile
index 2e0361b..0f33000 100644
--- a/drivers/staging/vt6656/Makefile
+++ b/drivers/staging/vt6656/Makefile
@@ -12,7 +12,6 @@ vt6656_stage-y +=	main_usb.o \
 			dpc.o \
 			power.o \
 			datarate.o \
-			tether.o \
 			key.o \
 			rf.o \
 			usbpipe.o \
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
index 19b8fd1..80240e4 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -36,7 +36,6 @@
  */
 
 #include "tmacro.h"
-#include "tether.h"
 #include "mac.h"
 #include "baseband.h"
 #include "rf.h"
diff --git a/drivers/staging/vt6656/baseband.h b/drivers/staging/vt6656/baseband.h
index 4160695..c73244b 100644
--- a/drivers/staging/vt6656/baseband.h
+++ b/drivers/staging/vt6656/baseband.h
@@ -33,7 +33,6 @@
 #ifndef __BASEBAND_H__
 #define __BASEBAND_H__
 
-#include "tether.h"
 #include "device.h"
 
 #define PREAMBLE_LONG   0
diff --git a/drivers/staging/vt6656/desc.h b/drivers/staging/vt6656/desc.h
index 617d479..f79af85 100644
--- a/drivers/staging/vt6656/desc.h
+++ b/drivers/staging/vt6656/desc.h
@@ -34,8 +34,6 @@
 #include <linux/types.h>
 #include <linux/mm.h>
 
-#include "tether.h"
-
 /* max transmit or receive buffer size */
 #define CB_MAX_BUF_SIZE     2900U       /* NOTE: must be multiple of 4 */
 
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h
index c5b5b9f..b6ae34f 100644
--- a/drivers/staging/vt6656/device.h
+++ b/drivers/staging/vt6656/device.h
@@ -74,7 +74,6 @@
  */
 
 #include "80211hdr.h"
-#include "tether.h"
 #include "wmgr.h"
 #include "wcmd.h"
 #include "desc.h"
diff --git a/drivers/staging/vt6656/dpc.c b/drivers/staging/vt6656/dpc.c
index a0d52d7..60230f2 100644
--- a/drivers/staging/vt6656/dpc.c
+++ b/drivers/staging/vt6656/dpc.c
@@ -38,7 +38,6 @@
 #include "dpc.h"
 #include "device.h"
 #include "rxtx.h"
-#include "tether.h"
 #include "card.h"
 #include "bssdb.h"
 #include "mac.h"
diff --git a/drivers/staging/vt6656/key.h b/drivers/staging/vt6656/key.h
index 7b8c960..4303c54 100644
--- a/drivers/staging/vt6656/key.h
+++ b/drivers/staging/vt6656/key.h
@@ -30,7 +30,6 @@
 #ifndef __KEY_H__
 #define __KEY_H__
 
-#include "tether.h"
 #include "80211mgr.h"
 
 #define MAX_GROUP_KEY       4
diff --git a/drivers/staging/vt6656/mac.c b/drivers/staging/vt6656/mac.c
index a60240c..755ac56 100644
--- a/drivers/staging/vt6656/mac.c
+++ b/drivers/staging/vt6656/mac.c
@@ -31,7 +31,6 @@
  */
 
 #include "tmacro.h"
-#include "tether.h"
 #include "desc.h"
 #include "mac.h"
 #include "80211hdr.h"
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c
index 4a412d9..d9e766b 100644
--- a/drivers/staging/vt6656/main_usb.c
+++ b/drivers/staging/vt6656/main_usb.c
@@ -51,7 +51,6 @@
 #include "card.h"
 #include "baseband.h"
 #include "mac.h"
-#include "tether.h"
 #include "wmgr.h"
 #include "power.h"
 #include "wcmd.h"
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index ab80c46..57c2b94 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -45,7 +45,6 @@
 
 #include "device.h"
 #include "rxtx.h"
-#include "tether.h"
 #include "card.h"
 #include "bssdb.h"
 #include "mac.h"
diff --git a/drivers/staging/vt6656/tether.c b/drivers/staging/vt6656/tether.c
deleted file mode 100644
index 2ef54f6..0000000
--- a/drivers/staging/vt6656/tether.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2003 VIA Networking, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- *
- * File: tether.c
- *
- * Purpose:
- *
- * Author: Tevin Chen
- *
- * Date: May 21, 1996
- *
- * Functions:
- *      ETHbIsBufferCrc32Ok - Check CRC value of the buffer if Ok or not
- *
- * Revision History:
- *
- */
-
-#include "device.h"
-#include "tmacro.h"
-#include "tether.h"
-
-/*
- * Description: Check CRC value of the buffer if Ok or not
- *
- * Parameters:
- *  In:
- *		pbyBuffer	    - pointer of buffer (normally is rx buffer)
- *		cbFrameLength	- length of buffer, including CRC portion
- *  Out:
- *      none
- *
- * Return Value: true if ok; false if error.
- *
- */
-bool ETHbIsBufferCrc32Ok(u8 * pbyBuffer, unsigned int cbFrameLength)
-{
-	u32 n_crc = ~ether_crc_le(cbFrameLength - 4, pbyBuffer);
-
-	if (le32_to_cpu(*((__le32 *)(pbyBuffer + cbFrameLength - 4))) != n_crc)
-		return false;
-
-	return true;
-}
-
diff --git a/drivers/staging/vt6656/tether.h b/drivers/staging/vt6656/tether.h
deleted file mode 100644
index f57fcfdc..0000000
--- a/drivers/staging/vt6656/tether.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
- * All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * File: tether.h
- *
- * Purpose:
- *
- * Author: Tevin Chen
- *
- * Date: Jan. 28, 1997
- *
- */
-
-#ifndef __TETHER_H__
-#define __TETHER_H__
-
-#include <linux/if_ether.h>
-
-//
-// constants
-//
-#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
-                                        // Ethernet address string length
-#define U_MULTI_ADDR_LEN    8           // multicast address length
-
-#ifdef __BIG_ENDIAN
-
-#define TYPE_MGMT_PROBE_RSP 0x5000
-
-#define FC_TODS             0x0001
-#define FC_FROMDS           0x0002
-#define FC_MOREFRAG         0x0004
-#define FC_RETRY            0x0008
-#define FC_POWERMGT         0x0010
-#define FC_MOREDATA         0x0020
-#define FC_WEP              0x0040
-#define TYPE_802_11_ATIM    0x9000
-
-#define TYPE_802_11_DATA    0x0800
-#define TYPE_802_11_CTL     0x0400
-#define TYPE_802_11_MGMT    0x0000
-#define TYPE_802_11_MASK    0x0C00
-#define TYPE_SUBTYPE_MASK   0xFC00
-#define TYPE_802_11_NODATA  0x4000
-#define TYPE_DATE_NULL      0x4800
-
-#define TYPE_CTL_PSPOLL     0xa400
-#define TYPE_CTL_ACK        0xd400
-
-#else //if LITTLE_ENDIAN
-//
-// wType field in the SEthernetHeader
-//
-// NOTE....
-//   in network byte order, high byte is going first
-
-#define TYPE_MGMT_PROBE_RSP 0x0050
-
-#define FC_TODS             0x0100
-#define FC_FROMDS           0x0200
-#define FC_MOREFRAG         0x0400
-#define FC_RETRY            0x0800
-#define FC_POWERMGT         0x1000
-#define FC_MOREDATA         0x2000
-#define FC_WEP              0x4000
-#define TYPE_802_11_ATIM    0x0090
-
-#define TYPE_802_11_DATA    0x0008
-#define TYPE_802_11_CTL     0x0004
-#define TYPE_802_11_MGMT    0x0000
-#define TYPE_802_11_MASK    0x000C
-#define TYPE_SUBTYPE_MASK   0x00FC
-#define TYPE_802_11_NODATA  0x0040
-#define TYPE_DATE_NULL      0x0048
-
-#define TYPE_CTL_PSPOLL     0x00a4
-#define TYPE_CTL_ACK        0x00d4
-
-#endif //#ifdef __BIG_ENDIAN
-
-#define WEP_IV_MASK         0x00FFFFFF
-
-//u8 ETHbyGetHashIndexByCrc(u8 * pbyMultiAddr);
-bool ETHbIsBufferCrc32Ok(u8 * pbyBuffer, unsigned int cbFrameLength);
-
-#endif /* __TETHER_H__ */
-- 
1.9.1


  parent reply	other threads:[~2014-06-25 20:21 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 20:19 [PATCH 00/34] staging: vt6656: mac80211 conversion remove legacy code Malcolm Priestley
2014-06-25 20:19 ` [PATCH 01/34] staging: vt6656: dead code remove zonetypes Malcolm Priestley
2014-06-25 20:19 ` [PATCH 02/34] staging: vt6656: move life time macros to rxtx.h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 03/34] staging: vt6656: dpc remove dead code Malcolm Priestley
2014-06-25 20:19 ` [PATCH 04/34] staging: vt6656: main_usb removed " Malcolm Priestley
2014-06-25 20:19 ` [PATCH 05/34] staging: vt6656: deadcode iwctl.c/h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 06/34] staging: vt6656: wcmd remove dead code Malcolm Priestley
2014-06-25 20:19 ` [PATCH 07/34] staging: vt6656: rxtx " Malcolm Priestley
2014-06-25 20:19 ` [PATCH 08/34] staging: vt6656: dead code remove wmgr.c Malcolm Priestley
2014-06-25 20:19 ` [PATCH 09/34] staging: vt6656: dead code remove bssdb.c Malcolm Priestley
2014-06-25 20:19 ` [PATCH 10/34] staging: vt6656: dead code wpactl Malcolm Priestley
2014-06-25 20:19 ` [PATCH 11/34] staging: vt6656: dead code remove wpa2.c Malcolm Priestley
2014-06-25 20:19 ` [PATCH 12/34] staging: vt6656: remove dead code wpa Malcolm Priestley
2014-06-25 20:19 ` [PATCH 13/34] staging: vt6656: dead code remove wctl Malcolm Priestley
2014-06-25 20:19 ` [PATCH 14/34] staging: vt6656: dead code remove tkip.c/h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 15/34] staging: vt6656: dead code remove micheal.c/h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 16/34] staging: vt6656: dead code remove rc4.c/h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 17/34] staging: vt6656: dead code remove iowpa.h Malcolm Priestley
2014-06-25 20:19 ` Malcolm Priestley [this message]
2014-06-25 20:19 ` [PATCH 19/34] staging: vt6656: remove dead code datarate Malcolm Priestley
2014-06-25 20:19 ` [PATCH 20/34] staging: vt6656: dead code remove 80211mgr.c/h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 21/34] staging: vt6656: remove dead code from power.c/h Malcolm Priestley
2014-06-25 20:19 ` [PATCH 22/34] staging: vt6656: dead code remove old key functions Malcolm Priestley
2014-06-25 20:20 ` [PATCH 23/34] staging: vt6656: dead code remove tmacro.h Malcolm Priestley
2014-06-25 20:20 ` [PATCH 24/34] staging: vt6656: dead codead remove bssdb.h header Malcolm Priestley
2014-06-25 20:20 ` [PATCH 25/34] staging: vt6656: dpc remove dead code RXvMngWorkItem Malcolm Priestley
2014-06-25 20:20 ` [PATCH 26/34] staging: vt6656: Remove vnt_set_channel from device_init_registers Malcolm Priestley
2014-06-25 20:20 ` [PATCH 27/34] staging: vt6656: remove old rx receive list Malcolm Priestley
2014-06-25 20:20 ` [PATCH 28/34] staging: vt6656: dead code remove wmgr.h Malcolm Priestley
2014-06-25 20:20 ` [PATCH 29/34] staging: vt6656: remove old channel tables Malcolm Priestley
2014-06-25 20:20 ` [PATCH 30/34] staging: vt6656: dead code remove 80211hdr.h Malcolm Priestley
2014-06-25 20:20 ` [PATCH 31/34] staging: vt6656: device_init_registers remove unused variables Malcolm Priestley
2014-06-25 20:20 ` [PATCH 32/34] staging: vt6656: dead code remove variables device_set_options Malcolm Priestley
2014-06-25 20:20 ` [PATCH 33/34] staging: vt6656: device.h remove dead strutures and variables Malcolm Priestley
2014-06-25 20:20 ` [PATCH 34/34] staging: vt6656: remove unneeded config and headers Malcolm Priestley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403727611-6825-19-git-send-email-tvboxspy@gmail.com \
    --to=tvboxspy@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.