Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317857
b: refs/heads/master
c: d69803b
h: refs/heads/master
i:
  317855: 949af64
v: v3
  • Loading branch information
Marcos Paulo de Souza authored and Greg Kroah-Hartman committed Jul 12, 2012
1 parent f81346a commit 4423f6c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 77 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a53ecbd5f7b1843232ed692c3ec3308b1f63ca7
refs/heads/master: d69803b95580581bc7cf6cc901dec91e20f5d5a8
57 changes: 0 additions & 57 deletions trunk/drivers/staging/csr/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ uf_start_sniff(unifi_priv_t *priv)
req->Channel = priv->wext_conf.channel;
req->ChannelStartingFactor = 0;

#if 0
printk("SniffJoin: Ifindex=%d, Channel=%d, ChannelStartingFactor=%d\n",
req->Ifindex,
req->Channel,
req->ChannelStartingFactor);
#endif

signal.SignalPrimitiveHeader.SignalId = CSR_MLME_SNIFFJOIN_REQUEST_ID;

r = unifi_mlme_blocking_request(priv, pcli, &signal, NULL, timeout);
Expand Down Expand Up @@ -198,11 +191,6 @@ netrx_radiotap(unifi_priv_t *priv,
unifi_rt->rt_antenna = ind->AntennaId;


#if 0
printk("skb datalen=%d\n", skb->len);
dump(skb->data, 48);
#endif

skb->dev = dev;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
skb->mac_header = skb->data;
Expand Down Expand Up @@ -282,24 +270,6 @@ netrx_prism(unifi_priv_t *priv,
return;
}

#if 0
printk("MA-SINFFDATA.ind: DataLen=%d bytes, TSF %02X %02X %02X %02X %02X %02X %02X %02X, Rate=%d, Antenna=%d\n",
ind->Data.DataLength,
ind->Timestamp.x[0],
ind->Timestamp.x[1],
ind->Timestamp.x[2],
ind->Timestamp.x[3],
ind->Timestamp.x[4],
ind->Timestamp.x[5],
ind->Timestamp.x[6],
ind->Timestamp.x[7],
ind->Rate,
ind->Antenna);

printk("payload, len %d\n", length);
dump((unsigned char *)payload, 32);
#endif

/*
* Allocate a SKB for the received data packet, including radiotap
* header.
Expand Down Expand Up @@ -341,11 +311,6 @@ netrx_prism(unifi_priv_t *priv,
avs->encoding = htonl(0); /* unknown */


#if 0
printk("skb datalen=%d\n", skb->len);
dump(skb->data, 48);
#endif

skb->dev = dev;
skb->mac.raw = skb->data;
skb->pkt_type = PACKET_OTHERHOST;
Expand Down Expand Up @@ -402,33 +367,11 @@ ma_sniffdata_ind(void *ospriv,
}

skb->len = bulkdata->d[0].data_length;
#if 0
printk("MA-SNIFFDATA.ind: DataLen=%d bytes, TSF %02X %02X %02X %02X %02X %02X %02X %02X, Rate=%d, Antenna=%d\n",
ind->Data.DataLength,
ind->Timestamp.x[0],
ind->Timestamp.x[1],
ind->Timestamp.x[2],
ind->Timestamp.x[3],
ind->Timestamp.x[4],
ind->Timestamp.x[5],
ind->Timestamp.x[6],
ind->Timestamp.x[7],
ind->Rate,
ind->AntennaId);

printk("payload, len %lu\n", bulkdata->d[0].data_length);
if (bulkdata->d[0].os_data_ptr && (bulkdata->d[0].data_length >= 32)) {
dump((unsigned char *)bulkdata->d[0].os_data_ptr, 32);
}
#endif

/* We only process data packets if the interface is open */
if (unlikely(!netif_running(dev))) {
priv->stats.rx_dropped++;
priv->wext_conf.wireless_stats.discard.misc++;
#if 0
printk("Dropping packet while interface is not up.\n");
#endif
dev_kfree_skb(skb);
return;
}
Expand Down
19 changes: 0 additions & 19 deletions trunk/drivers/staging/csr/unifi_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,25 +242,6 @@ void uf_native_process_udi_signal(ul_client_t *pcli,
const u8 *packed_signal,
int packed_signal_len,
const bulk_data_param_t *bulkdata, int dir);
#if 0
/*
* Choose one of these if available in linux/if_arp.h:
* #define UNIFI_SNIFF_ARPHRD ARPHRD_IEEE80211_RADIOTAP
* #define UNIFI_SNIFF_ARPHRD ARPHRD_IEEE80211_PRISM
*
* Radiotap is the newer standard for softmac WLAN devices, it works with
* Wireshark but not Ethereal (due to a bug in the Ethereal dissector).
* Prism is an older (less desirable) format but it does work with Ethereal.
*/
#ifdef ARPHRD_IEEE80211_RADIOTAP
#define UNIFI_SNIFF_ARPHRD ARPHRD_IEEE80211_RADIOTAP
#else
#ifdef ARPHRD_IEEE80211_PRISM
#define UNIFI_SNIFF_ARPHRD ARPHRD_IEEE80211_PRISM
#endif
#endif
#endif

#ifdef UNIFI_SNIFF_ARPHRD
/*
* monitor.c
Expand Down

0 comments on commit 4423f6c

Please sign in to comment.