Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6656: decode remove tether.c/h

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Malcolm Priestley and committed by
Greg Kroah-Hartman
31207615 e1aec72d

-173
-1
drivers/staging/vt6656/80211mgr.c
··· 51 51 52 52 #include "device.h" 53 53 #include "tmacro.h" 54 - #include "tether.h" 55 54 #include "80211mgr.h" 56 55 #include "80211hdr.h" 57 56
-1
drivers/staging/vt6656/Makefile
··· 12 12 dpc.o \ 13 13 power.o \ 14 14 datarate.o \ 15 - tether.o \ 16 15 key.o \ 17 16 rf.o \ 18 17 usbpipe.o \
-1
drivers/staging/vt6656/baseband.c
··· 36 36 */ 37 37 38 38 #include "tmacro.h" 39 - #include "tether.h" 40 39 #include "mac.h" 41 40 #include "baseband.h" 42 41 #include "rf.h"
-1
drivers/staging/vt6656/baseband.h
··· 33 33 #ifndef __BASEBAND_H__ 34 34 #define __BASEBAND_H__ 35 35 36 - #include "tether.h" 37 36 #include "device.h" 38 37 39 38 #define PREAMBLE_LONG 0
-2
drivers/staging/vt6656/desc.h
··· 34 34 #include <linux/types.h> 35 35 #include <linux/mm.h> 36 36 37 - #include "tether.h" 38 - 39 37 /* max transmit or receive buffer size */ 40 38 #define CB_MAX_BUF_SIZE 2900U /* NOTE: must be multiple of 4 */ 41 39
-1
drivers/staging/vt6656/device.h
··· 74 74 */ 75 75 76 76 #include "80211hdr.h" 77 - #include "tether.h" 78 77 #include "wmgr.h" 79 78 #include "wcmd.h" 80 79 #include "desc.h"
-1
drivers/staging/vt6656/dpc.c
··· 38 38 #include "dpc.h" 39 39 #include "device.h" 40 40 #include "rxtx.h" 41 - #include "tether.h" 42 41 #include "card.h" 43 42 #include "bssdb.h" 44 43 #include "mac.h"
-1
drivers/staging/vt6656/key.h
··· 30 30 #ifndef __KEY_H__ 31 31 #define __KEY_H__ 32 32 33 - #include "tether.h" 34 33 #include "80211mgr.h" 35 34 36 35 #define MAX_GROUP_KEY 4
-1
drivers/staging/vt6656/mac.c
··· 31 31 */ 32 32 33 33 #include "tmacro.h" 34 - #include "tether.h" 35 34 #include "desc.h" 36 35 #include "mac.h" 37 36 #include "80211hdr.h"
-1
drivers/staging/vt6656/main_usb.c
··· 51 51 #include "card.h" 52 52 #include "baseband.h" 53 53 #include "mac.h" 54 - #include "tether.h" 55 54 #include "wmgr.h" 56 55 #include "power.h" 57 56 #include "wcmd.h"
-1
drivers/staging/vt6656/rxtx.c
··· 45 45 46 46 #include "device.h" 47 47 #include "rxtx.h" 48 - #include "tether.h" 49 48 #include "card.h" 50 49 #include "bssdb.h" 51 50 #include "mac.h"
-60
drivers/staging/vt6656/tether.c
··· 1 - /* 2 - * Copyright (c) 2003 VIA Networking, Inc. All rights reserved. 3 - * 4 - * This program is free software; you can redistribute it and/or modify 5 - * it under the terms of the GNU General Public License as published by 6 - * the Free Software Foundation; either version 2 of the License, or 7 - * (at your option) any later version. 8 - * 9 - * This program is distributed in the hope that it will be useful, 10 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - * GNU General Public License for more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along 15 - * with this program; if not, write to the Free Software Foundation, Inc., 16 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 - * 18 - * 19 - * File: tether.c 20 - * 21 - * Purpose: 22 - * 23 - * Author: Tevin Chen 24 - * 25 - * Date: May 21, 1996 26 - * 27 - * Functions: 28 - * ETHbIsBufferCrc32Ok - Check CRC value of the buffer if Ok or not 29 - * 30 - * Revision History: 31 - * 32 - */ 33 - 34 - #include "device.h" 35 - #include "tmacro.h" 36 - #include "tether.h" 37 - 38 - /* 39 - * Description: Check CRC value of the buffer if Ok or not 40 - * 41 - * Parameters: 42 - * In: 43 - * pbyBuffer - pointer of buffer (normally is rx buffer) 44 - * cbFrameLength - length of buffer, including CRC portion 45 - * Out: 46 - * none 47 - * 48 - * Return Value: true if ok; false if error. 49 - * 50 - */ 51 - bool ETHbIsBufferCrc32Ok(u8 * pbyBuffer, unsigned int cbFrameLength) 52 - { 53 - u32 n_crc = ~ether_crc_le(cbFrameLength - 4, pbyBuffer); 54 - 55 - if (le32_to_cpu(*((__le32 *)(pbyBuffer + cbFrameLength - 4))) != n_crc) 56 - return false; 57 - 58 - return true; 59 - } 60 -
-101
drivers/staging/vt6656/tether.h
··· 1 - /* 2 - * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 3 - * All rights reserved. 4 - * 5 - * This program is free software; you can redistribute it and/or modify 6 - * it under the terms of the GNU General Public License as published by 7 - * the Free Software Foundation; either version 2 of the License, or 8 - * (at your option) any later version. 9 - * 10 - * This program is distributed in the hope that it will be useful, 11 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 - * GNU General Public License for more details. 14 - * 15 - * You should have received a copy of the GNU General Public License along 16 - * with this program; if not, write to the Free Software Foundation, Inc., 17 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 - * 19 - * File: tether.h 20 - * 21 - * Purpose: 22 - * 23 - * Author: Tevin Chen 24 - * 25 - * Date: Jan. 28, 1997 26 - * 27 - */ 28 - 29 - #ifndef __TETHER_H__ 30 - #define __TETHER_H__ 31 - 32 - #include <linux/if_ether.h> 33 - 34 - // 35 - // constants 36 - // 37 - #define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1) 38 - // Ethernet address string length 39 - #define U_MULTI_ADDR_LEN 8 // multicast address length 40 - 41 - #ifdef __BIG_ENDIAN 42 - 43 - #define TYPE_MGMT_PROBE_RSP 0x5000 44 - 45 - #define FC_TODS 0x0001 46 - #define FC_FROMDS 0x0002 47 - #define FC_MOREFRAG 0x0004 48 - #define FC_RETRY 0x0008 49 - #define FC_POWERMGT 0x0010 50 - #define FC_MOREDATA 0x0020 51 - #define FC_WEP 0x0040 52 - #define TYPE_802_11_ATIM 0x9000 53 - 54 - #define TYPE_802_11_DATA 0x0800 55 - #define TYPE_802_11_CTL 0x0400 56 - #define TYPE_802_11_MGMT 0x0000 57 - #define TYPE_802_11_MASK 0x0C00 58 - #define TYPE_SUBTYPE_MASK 0xFC00 59 - #define TYPE_802_11_NODATA 0x4000 60 - #define TYPE_DATE_NULL 0x4800 61 - 62 - #define TYPE_CTL_PSPOLL 0xa400 63 - #define TYPE_CTL_ACK 0xd400 64 - 65 - #else //if LITTLE_ENDIAN 66 - // 67 - // wType field in the SEthernetHeader 68 - // 69 - // NOTE.... 70 - // in network byte order, high byte is going first 71 - 72 - #define TYPE_MGMT_PROBE_RSP 0x0050 73 - 74 - #define FC_TODS 0x0100 75 - #define FC_FROMDS 0x0200 76 - #define FC_MOREFRAG 0x0400 77 - #define FC_RETRY 0x0800 78 - #define FC_POWERMGT 0x1000 79 - #define FC_MOREDATA 0x2000 80 - #define FC_WEP 0x4000 81 - #define TYPE_802_11_ATIM 0x0090 82 - 83 - #define TYPE_802_11_DATA 0x0008 84 - #define TYPE_802_11_CTL 0x0004 85 - #define TYPE_802_11_MGMT 0x0000 86 - #define TYPE_802_11_MASK 0x000C 87 - #define TYPE_SUBTYPE_MASK 0x00FC 88 - #define TYPE_802_11_NODATA 0x0040 89 - #define TYPE_DATE_NULL 0x0048 90 - 91 - #define TYPE_CTL_PSPOLL 0x00a4 92 - #define TYPE_CTL_ACK 0x00d4 93 - 94 - #endif //#ifdef __BIG_ENDIAN 95 - 96 - #define WEP_IV_MASK 0x00FFFFFF 97 - 98 - //u8 ETHbyGetHashIndexByCrc(u8 * pbyMultiAddr); 99 - bool ETHbIsBufferCrc32Ok(u8 * pbyBuffer, unsigned int cbFrameLength); 100 - 101 - #endif /* __TETHER_H__ */