Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79223
b: refs/heads/master
c: 7e22627
h: refs/heads/master
i:
  79221: 0d71338
  79219: f36a423
  79215: f882cbb
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 91cd50b commit 7150102
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 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: eae86bf378de981696697426831bd9db68930740
refs/heads/master: 7e226272fcf9c1ec8b67fac995ce4227f4f76971
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ int lbs_mesh_config(struct lbs_private *priv, uint16_t enable, uint16_t chan)
cmd.action = cpu_to_le16(enable);
cmd.channel = cpu_to_le16(chan);
cmd.type = cpu_to_le16(priv->mesh_tlv);

if (enable) {
cmd.length = cpu_to_le16(priv->mesh_ssid_len);
memcpy(cmd.data, priv->mesh_ssid, priv->mesh_ssid_len);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/libertas/cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

#define lbs_cmd_with_response(priv, cmdnr, cmd) \
lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd))

int __lbs_cmd(struct lbs_private *priv, uint16_t command,
struct cmd_header *in_cmd, int in_cmd_size,
struct cmd_header *in_cmd, int in_cmd_size,
int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *),
unsigned long callback_arg);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static ssize_t lbs_setuserscan(struct file *file,

if (!buf)
return -ENOMEM;

buf_size = min(count, len - 1);
if (copy_from_user(buf, userbuf, buf_size)) {
res = -EFAULT;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/if_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* current block size.
*
* As SDIO is still new to the kernel, it is unfortunately common with
* bugs in the host controllers related to that. One such bug is that
* bugs in the host controllers related to that. One such bug is that
* controllers cannot do transfers that aren't a multiple of 4 bytes.
* If you don't have time to fix the host controller driver, you can
* work around the problem by modifying if_sdio_host_to_card() and
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static int if_usb_probe(struct usb_interface *intf,

setup_timer(&cardp->fw_timeout, if_usb_fw_timeo, (unsigned long)cardp);
init_waitqueue_head(&cardp->fw_wq);

cardp->udev = udev;
iface_desc = intf->cur_altsetting;

Expand Down Expand Up @@ -871,7 +871,7 @@ static int if_usb_prog_firmware(struct if_usb_card *cardp)

/* ... and wait for the process to complete */
wait_event_interruptible(cardp->fw_wq, cardp->surprise_removed || cardp->fwdnldover);

del_timer_sync(&cardp->fw_timeout);
usb_kill_urb(cardp->rx_urb);

Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int lbs_add_rtap(struct lbs_private *priv);
static void lbs_remove_rtap(struct lbs_private *priv);
static int lbs_add_mesh(struct lbs_private *priv);
static void lbs_remove_mesh(struct lbs_private *priv);


/**
* Get function for sysfs attribute rtap
Expand Down Expand Up @@ -347,7 +347,7 @@ static ssize_t lbs_mesh_set(struct device *dev,
ret = lbs_mesh_config(priv, enable, priv->curbssparams.channel);
if (ret)
return ret;

if (enable)
lbs_add_mesh(priv);
else
Expand Down Expand Up @@ -401,7 +401,7 @@ static int lbs_dev_open(struct net_device *dev)
netif_carrier_on(dev);
} else {
priv->infra_open = 1;

if (priv->connect_status == LBS_CONNECTED)
netif_carrier_on(dev);
else
Expand Down Expand Up @@ -433,7 +433,7 @@ static int lbs_mesh_stop(struct net_device *dev)

netif_stop_queue(dev);
netif_carrier_off(dev);

spin_unlock_irq(&priv->driver_lock);
return 0;
}
Expand All @@ -453,7 +453,7 @@ static int lbs_eth_stop(struct net_device *dev)
priv->infra_open = 0;

netif_stop_queue(dev);

spin_unlock_irq(&priv->driver_lock);
return 0;
}
Expand Down Expand Up @@ -850,7 +850,7 @@ int lbs_suspend(struct lbs_private *priv)
}

memset(&cmd, 0, sizeof(cmd));

ret = __lbs_cmd(priv, CMD_802_11_HOST_SLEEP_ACTIVATE, &cmd,
sizeof(cmd), lbs_suspend_callback, 0);
if (ret)
Expand Down Expand Up @@ -1180,7 +1180,7 @@ int lbs_start_card(struct lbs_private *priv)
/* Enable mesh, if supported, and work out which TLV it uses.
0x100 + 291 is an unofficial value used in 5.110.20.pXX
0x100 + 37 is the official value used in 5.110.21.pXX
but we check them in that order because 20.pXX doesn't
but we check them in that order because 20.pXX doesn't
give an error -- it just silently fails. */

/* 5.110.20.pXX firmware will fail the command if the channel
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/libertas/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
netif_stop_queue(priv->mesh_dev);

if (priv->tx_pending_len) {
/* This can happen if packets come in on the mesh and eth
device simultaneously -- there's no mutual exclusion on
/* This can happen if packets come in on the mesh and eth
device simultaneously -- there's no mutual exclusion on
hard_start_xmit() calls between devices. */
lbs_deb_tx("Packet on %s while busy\n", dev->name);
ret = NETDEV_TX_BUSY;
Expand Down

0 comments on commit 7150102

Please sign in to comment.