Staging: vt6656: remove dependency on kernel version
PATCH 1/1 Staging: vt6656: remove dependency on kernel version
Signed-off-by Alexander Beregalov <[email protected]>
--- drivers/staging/vt6656/bssdb.c | 9 -- drivers/staging/vt6656/device.h | 5 - drivers/staging/vt6656/device_cfg.h | 4 - drivers/staging/vt6656/dpc.c | 15 --- drivers/staging/vt6656/iwctl.c | 56 --------- drivers/staging/vt6656/kcompat.h | 232 ----------------------------------- drivers/staging/vt6656/main_usb.c | 111 ----------------- drivers/staging/vt6656/usbpipe.c | 132 -------------------- drivers/staging/vt6656/wcmd.c | 5 - drivers/staging/vt6656/wmgr.c | 15 --- 10 files changed, 0 insertions(+), 584 deletions(-)
drivers/staging/vt6656/bssdb.c +0 -9
@@ -1300,12 +1300,7 @@ if((pMgmt->eCurrState!=WMAC_STATE_ASSOC) && wpahdr->req_ie_len =0 ;skb_put (pDevice->skb,sizeof (viawget_wpa_header)); pDevice->skb->dev = pDevice->wpadev; -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) pDevice->skb->mac_header = pDevice->skb->data; -#else - pDevice->skb->mac.raw = pDevice->skb->data; -#endif pDevice->skb->pkt_type =PACKET_HOST ; pDevice->skb->protocol =htons (ETH_P_802_2 );memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb));
@@ -1345,11 +1340,7 @@ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "bIsRoaming %d, !\n", pDevice->bIsRoaming ); wpahdr->req_ie_len =0 ;skb_put (pDevice->skb,sizeof (viawget_wpa_header)); pDevice->skb->dev = pDevice->wpadev; -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) pDevice->skb->mac_header = pDevice->skb->data; -#else - pDevice->skb->mac.raw = pDevice->skb->data; -#endif pDevice->skb->pkt_type =PACKET_HOST ; pDevice->skb->protocol =htons (ETH_P_802_2 );memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb));
drivers/staging/vt6656/device.h +0 -5
@@ -57,11 +57,6 @@#include <linux/sched.h> #include <linux/if.h> #include <linux/rtnetlink.h> //James - -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,18 ) -#include <linux/config.h> -#endif -#include <linux/proc_fs.h> #include <linux/inetdevice.h> #include <linux/reboot.h>
drivers/staging/vt6656/device_cfg.h +0 -4
@@ -27,10 +27,6 @@#ifndef __DEVICE_CONFIG_H#define __DEVICE_CONFIG_H -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,18 ) -#include <linux/config.h> -#endif -#include <linux/types.h> #if !defined(__TTYPE_H__)
drivers/staging/vt6656/dpc.c +0 -15
@@ -674,12 +674,7 @@ RXbBulkInProcessData ( skb->data +=8 ; skb->tail +=8 ;skb_put (skb, FrameSize); -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) skb->mac_header = skb->data; -#else - skb->mac.raw = skb->data; -#endif skb->pkt_type =PACKET_OTHERHOST ; skb->protocol =htons (ETH_P_802_2 );memset (skb->cb,0 ,sizeof (skb->cb));
@@ -836,12 +831,7 @@ RXbBulkInProcessData ( skb->data += (cbIVOffset +8 ); skb->tail += (cbIVOffset +8 );skb_put (skb, FrameSize); -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) skb->mac_header = skb->data; -#else - skb->mac.raw = skb->data; -#endif skb->pkt_type =PACKET_OTHERHOST ; skb->protocol =htons (ETH_P_802_2 );memset (skb->cb,0 ,sizeof (skb->cb));
@@ -961,12 +951,7 @@ RXbBulkInProcessData ( wpahdr->req_ie_len =0 ;skb_put (pDevice->skb,sizeof (viawget_wpa_header)); pDevice->skb->dev = pDevice->wpadev; -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) pDevice->skb->mac_header = pDevice->skb->data; -#else - pDevice->skb->mac.raw = pDevice->skb->data; -#endif pDevice->skb->pkt_type =PACKET_HOST ; pDevice->skb->protocol =htons (ETH_P_802_2 );memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb));
drivers/staging/vt6656/iwctl.c +0 -56
154 lines not on this page · raw message
drivers/staging/vt6656/kcompat.h +0 -232
246 lines not on this page · raw message
drivers/staging/vt6656/main_usb.c +0 -111
292 lines not on this page · raw message
drivers/staging/vt6656/usbpipe.c +0 -132
237 lines not on this page · raw message
drivers/staging/vt6656/wcmd.c +0 -5
@@ -524,12 +524,7 @@ vRunCommand( (pMgmt->uScanChannel < CB_MAX_CHANNEL_24G)) { s_vProbeChannel(pDevice); spin_unlock_irq(&pDevice->lock); -//2008-0526-02<Add>by MikeLiu -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,23 ) vCommandTimerWait((HANDLE)pDevice, 100); -#else -vCommandTimerWait ((HANDLE )pDevice,WCMD_ACTIVE_SCAN_TIME ); -#endif return; } else {spin_unlock_irq (&pDevice->lock);
drivers/staging/vt6656/wmgr.c +0 -15
@@ -1053,12 +1053,7 @@ s_vMgrRxAssocResponse( );skb_put (pDevice->skb,sizeof (viawget_wpa_header) + wpahdr->resp_ie_len + wpahdr->req_ie_len); pDevice->skb->dev = pDevice->wpadev; -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) pDevice->skb->mac_header = pDevice->skb->data; -#else - pDevice->skb->mac.raw = pDevice->skb->data; -#endif pDevice->skb->pkt_type =PACKET_HOST ; pDevice->skb->protocol =htons (ETH_P_802_2 );memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb));
@@ -1697,12 +1692,7 @@ s_vMgrRxDisassociation( wpahdr->req_ie_len =0 ;skb_put (pDevice->skb,sizeof (viawget_wpa_header)); pDevice->skb->dev = pDevice->wpadev; -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) pDevice->skb->mac_header = pDevice->skb->data; -#else - pDevice->skb->mac.raw = pDevice->skb->data; -#endif pDevice->skb->pkt_type =PACKET_HOST ; pDevice->skb->protocol =htons (ETH_P_802_2 );memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb));
@@ -1805,12 +1795,7 @@ s_vMgrRxDeauthentication( wpahdr->req_ie_len =0 ;skb_put (pDevice->skb,sizeof (viawget_wpa_header)); pDevice->skb->dev = pDevice->wpadev; -//2008-4-3 modify by Chester for wpa -#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,22 ) pDevice->skb->mac_header = pDevice->skb->data; -#else - pDevice->skb->mac.raw = pDevice->skb->data; -#endif pDevice->skb->pkt_type =PACKET_HOST ; pDevice->skb->protocol =htons (ETH_P_802_2 );memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb));
Signature · 1 line
1.6.3.3
Quoted 1 line · On Friday 03 July 2009 07:52:59 Alexander Beregalov wrote:
Signed-off-by Alexander Beregalov <[email protected]>
[ Hm... maybe I should be using Reviewed-by: since in my case ACK
means (unless stated otherwise) that I audited the whole patch? ]