Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186648
b: refs/heads/master
c: 2363912
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Mahoney authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 3c91487 commit e4228cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 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: ab59186c7545dcffbeda8a78b75bfcdb14c4566d
refs/heads/master: 23639126523b274e094515b609c987e927284920
4 changes: 2 additions & 2 deletions trunk/drivers/staging/otus/usbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ int zfLnxRegisterVapDev(struct net_device* parentDev, u16_t vapId)
{
/* Allocate net device structure */
vap[vapId].dev = alloc_etherdev(0);
printk("Register vap dev=%x\n", (u32_t)vap[vapId].dev);
printk("Register vap dev=%p\n", vap[vapId].dev);

if(vap[vapId].dev == NULL) {
printk("alloc_etherdev fail\n");
Expand Down Expand Up @@ -883,7 +883,7 @@ int zfLnxUnregisterVapDev(struct net_device* parentDev, u16_t vapId)
printk("Unregister VAP dev : %s\n", vap[vapId].dev->name);

if(vap[vapId].dev != NULL) {
printk("Unregister vap dev=%x\n", (u32_t)vap[vapId].dev);
printk("Unregister vap dev=%p\n", vap[vapId].dev);
//
//unregister_netdevice(wds[wdsId].dev);
unregister_netdev(vap[vapId].dev);
Expand Down
10 changes: 2 additions & 8 deletions trunk/drivers/staging/otus/wrap_pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void zfLnxRecv80211(zdev_t *dev, zbuf_t *buf, struct zsAdditionInfo *addInfo)
skb1 = skb_copy(buf, GFP_ATOMIC);
if (skb1 != NULL) {
skb1->dev = dev;
skb1->mac_header = skb1->data;
skb_reset_mac_header(skb1);
skb1->ip_summed = CHECKSUM_NONE;
skb1->pkt_type = PACKET_OTHERHOST;
/* ETH_P_80211_RAW */
Expand All @@ -85,13 +85,7 @@ void zfLnxRecvEth(zdev_t *dev, zbuf_t *buf, u16_t port)
/* new_buf = dev_alloc_skb(2048); */
new_buf = dev_alloc_skb(buf->len);

#ifdef NET_SKBUFF_DATA_USES_OFFSET
new_buf->tail = 0;
new_buf->len = 0;
#else
new_buf->tail = new_buf->data;
new_buf->len = 0;
#endif
skb_reset_tail_pointer(new_buf);

skb_put(new_buf, buf->len);
memcpy(new_buf->data, buf->data, buf->len);
Expand Down

0 comments on commit e4228cd

Please sign in to comment.