summaryrefslogtreecommitdiffstats
path: root/drivers/staging/otus/wrap_pkt.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-10-01 16:16:34 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-01 18:11:56 -0700
commitcff55f50b882b197a52c4cf0108a43c615d1fdba (patch)
tree549924b67a6353a33935185cb2cf5634715a90fd /drivers/staging/otus/wrap_pkt.c
parent0656bb352080982f960bfff2b78602a5071c909f (diff)
downloadlinux-cff55f50b882b197a52c4cf0108a43c615d1fdba.tar.bz2
staging: remove the Atheros otus vendor driver
Atheros originally had posted a vendor driver to support the Atheros AR9170 devices, the driver was called otus [1]. The otus driver was staging quality but it, along with other chipset documentation helped the community do a rewrite for a proper driver. Johannes Berg did the ar9170 [2] work and Christian Lamparter then followed up with some final touches for inclusion upstream. The original goal behind ar9170 was to match all functionality, performance, stability and quality against Otus. In the end this proved quite challenging even with GPLv2 firmware. Christian then decided to work on a replacement driver with new enhancements to the GPLv2 firmware. It took 1 year, 5 months, 9 days since this merge of ar9170usb upstream to release carl9170 with upstream inclusion intentions but its now there. We remove the Otus driver now as the carl9170 driver actually ends up not only replacing but superseding the staging Otus driver! http://wireless.kernel.org/en/users/Drivers/otus http://wireless.kernel.org/en/users/Drivers/ar9170 http://wireless.kernel.org/en/users/Drivers/carl9170 Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/otus/wrap_pkt.c')
-rw-r--r--drivers/staging/otus/wrap_pkt.c147
1 files changed, 0 insertions, 147 deletions
diff --git a/drivers/staging/otus/wrap_pkt.c b/drivers/staging/otus/wrap_pkt.c
deleted file mode 100644
index 5ecf38e355a8..000000000000
--- a/drivers/staging/otus/wrap_pkt.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Copyright (c) 2007-2008 Atheros Communications Inc.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-/* */
-/* Module Name : wrap_pkt.c */
-/* */
-/* Abstract */
-/* This module contains wrapper functions for packet handling */
-/* */
-/* NOTES */
-/* Platform dependent. */
-/* */
-/************************************************************************/
-
-#include "oal_dt.h"
-#include "usbdrv.h"
-
-#include <linux/netlink.h>
-#include <linux/gfp.h>
-#include <net/iw_handler.h>
-
-
-/* extern struct zsWdsStruct wds[ZM_WDS_PORT_NUMBER]; */
-extern struct zsVapStruct vap[ZM_VAP_PORT_NUMBER];
-
-
-/***** Rx *****/
-void zfLnxRecv80211(zdev_t *dev, zbuf_t *buf, struct zsAdditionInfo *addInfo)
-{
- u16_t frameType;
- u16_t frameCtrl;
- u16_t frameSubtype;
- zbuf_t *skb1;
- struct usbdrv_private *macp = dev->ml_priv;
-
- /* frameCtrl = zmw_buf_readb(dev, buf, 0); */
- frameCtrl = *(u8_t *)((u8_t *)buf->data);
- frameType = frameCtrl & 0xf;
- frameSubtype = frameCtrl & 0xf0;
-
- if ((frameType == 0x0) && (macp->forwardMgmt)) {
- switch (frameSubtype) {
- /* Beacon */
- case 0x80:
- /* Probe response */
- case 0x50:
- skb1 = skb_copy(buf, GFP_ATOMIC);
- if (skb1 != NULL) {
- skb1->dev = dev;
- skb_reset_mac_header(skb1);
- skb1->ip_summed = CHECKSUM_NONE;
- skb1->pkt_type = PACKET_OTHERHOST;
- /* ETH_P_80211_RAW */
- skb1->protocol = __constant_htons(0x0019);
- netif_rx(skb1);
- }
- break;
- default:
- break;
- }
- }
-
- zfiRecv80211(dev, buf, addInfo);
- return;
-}
-
-#define ZM_AVOID_UDP_LARGE_PACKET_FAIL
-void zfLnxRecvEth(zdev_t *dev, zbuf_t *buf, u16_t port)
-{
- struct usbdrv_private *macp = dev->ml_priv;
-#ifdef ZM_AVOID_UDP_LARGE_PACKET_FAIL
- zbuf_t *new_buf;
-
- /* new_buf = dev_alloc_skb(2048); */
- new_buf = dev_alloc_skb(buf->len);
-
- skb_reset_tail_pointer(new_buf);
-
- skb_put(new_buf, buf->len);
- memcpy(new_buf->data, buf->data, buf->len);
-
- /* Free buffer */
- dev_kfree_skb_any(buf);
-
- if (port == 0) {
- new_buf->dev = dev;
- new_buf->protocol = eth_type_trans(new_buf, dev);
- } else {
- /* VAP */
- if (vap[0].dev != NULL) {
- new_buf->dev = vap[0].dev;
- new_buf->protocol = eth_type_trans(new_buf, vap[0].dev);
- } else {
- new_buf->dev = dev;
- new_buf->protocol = eth_type_trans(new_buf, dev);
- }
- }
-
- new_buf->ip_summed = CHECKSUM_NONE;
- dev->last_rx = jiffies;
-
- switch (netif_rx(new_buf))
-#else
- if (port == 0) {
- buf->dev = dev;
- buf->protocol = eth_type_trans(buf, dev);
- } else {
- /* VAP */
- if (vap[0].dev != NULL) {
- buf->dev = vap[0].dev;
- buf->protocol = eth_type_trans(buf, vap[0].dev);
- } else {
- buf->dev = dev;
- buf->protocol = eth_type_trans(buf, dev);
- }
- }
-
- buf->ip_summed = CHECKSUM_NONE;
- dev->last_rx = jiffies;
-
- switch (netif_rx(buf))
-#endif
- {
- case NET_RX_DROP:
- break;
- default:
- macp->drv_stats.net_stats.rx_packets++;
- macp->drv_stats.net_stats.rx_bytes += buf->len;
- break;
- }
-
- return;
-}
-
-/* Leave an empty line below to remove warning message on some compiler */