diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
commit | f8965467f366fd18f01feafb5db10512d7b4422c (patch) | |
tree | 3706a9cd779859271ca61b85c63a1bc3f82d626e /drivers/net/wireless/libertas/main.c | |
parent | a26272e5200765691e67d6780e52b32498fdb659 (diff) | |
parent | 2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1674 commits)
qlcnic: adding co maintainer
ixgbe: add support for active DA cables
ixgbe: dcb, do not tag tc_prio_control frames
ixgbe: fix ixgbe_tx_is_paused logic
ixgbe: always enable vlan strip/insert when DCB is enabled
ixgbe: remove some redundant code in setting FCoE FIP filter
ixgbe: fix wrong offset to fc_frame_header in ixgbe_fcoe_ddp
ixgbe: fix header len when unsplit packet overflows to data buffer
ipv6: Never schedule DAD timer on dead address
ipv6: Use POSTDAD state
ipv6: Use state_lock to protect ifa state
ipv6: Replace inet6_ifaddr->dead with state
cxgb4: notify upper drivers if the device is already up when they load
cxgb4: keep interrupts available when the ports are brought down
cxgb4: fix initial addition of MAC address
cnic: Return SPQ credit to bnx2x after ring setup and shutdown.
cnic: Convert cnic_local_flags to atomic ops.
can: Fix SJA1000 command register writes on SMP systems
bridge: fix build for CONFIG_SYSFS disabled
ARCNET: Limit com20020 PCI ID matches for SOHARD cards
...
Fix up various conflicts with pcmcia tree drivers/net/
{pcmcia/3c589_cs.c, wireless/orinoco/orinoco_cs.c and
wireless/orinoco/spectrum_cs.c} and feature removal
(Documentation/feature-removal-schedule.txt).
Also fix a non-content conflict due to pm_qos_requirement getting
renamed in the PM tree (now pm_qos_request) in net/mac80211/scan.c
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 598080414b17..d9b8ee130c45 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -229,7 +229,7 @@ static void lbs_tx_timeout(struct net_device *dev) | |||
229 | 229 | ||
230 | lbs_pr_err("tx watch dog timeout\n"); | 230 | lbs_pr_err("tx watch dog timeout\n"); |
231 | 231 | ||
232 | dev->trans_start = jiffies; | 232 | dev->trans_start = jiffies; /* prevent tx timeout */ |
233 | 233 | ||
234 | if (priv->currenttxskb) | 234 | if (priv->currenttxskb) |
235 | lbs_send_tx_feedback(priv, 0); | 235 | lbs_send_tx_feedback(priv, 0); |
@@ -319,7 +319,7 @@ static int lbs_add_mcast_addrs(struct cmd_ds_mac_multicast_adr *cmd, | |||
319 | struct net_device *dev, int nr_addrs) | 319 | struct net_device *dev, int nr_addrs) |
320 | { | 320 | { |
321 | int i = nr_addrs; | 321 | int i = nr_addrs; |
322 | struct dev_mc_list *mc_list; | 322 | struct netdev_hw_addr *ha; |
323 | int cnt; | 323 | int cnt; |
324 | 324 | ||
325 | if ((dev->flags & (IFF_UP|IFF_MULTICAST)) != (IFF_UP|IFF_MULTICAST)) | 325 | if ((dev->flags & (IFF_UP|IFF_MULTICAST)) != (IFF_UP|IFF_MULTICAST)) |
@@ -327,19 +327,19 @@ static int lbs_add_mcast_addrs(struct cmd_ds_mac_multicast_adr *cmd, | |||
327 | 327 | ||
328 | netif_addr_lock_bh(dev); | 328 | netif_addr_lock_bh(dev); |
329 | cnt = netdev_mc_count(dev); | 329 | cnt = netdev_mc_count(dev); |
330 | netdev_for_each_mc_addr(mc_list, dev) { | 330 | netdev_for_each_mc_addr(ha, dev) { |
331 | if (mac_in_list(cmd->maclist, nr_addrs, mc_list->dmi_addr)) { | 331 | if (mac_in_list(cmd->maclist, nr_addrs, ha->addr)) { |
332 | lbs_deb_net("mcast address %s:%pM skipped\n", dev->name, | 332 | lbs_deb_net("mcast address %s:%pM skipped\n", dev->name, |
333 | mc_list->dmi_addr); | 333 | ha->addr); |
334 | cnt--; | 334 | cnt--; |
335 | continue; | 335 | continue; |
336 | } | 336 | } |
337 | 337 | ||
338 | if (i == MRVDRV_MAX_MULTICAST_LIST_SIZE) | 338 | if (i == MRVDRV_MAX_MULTICAST_LIST_SIZE) |
339 | break; | 339 | break; |
340 | memcpy(&cmd->maclist[6*i], mc_list->dmi_addr, ETH_ALEN); | 340 | memcpy(&cmd->maclist[6*i], ha->addr, ETH_ALEN); |
341 | lbs_deb_net("mcast address %s:%pM added to filter\n", dev->name, | 341 | lbs_deb_net("mcast address %s:%pM added to filter\n", dev->name, |
342 | mc_list->dmi_addr); | 342 | ha->addr); |
343 | i++; | 343 | i++; |
344 | cnt--; | 344 | cnt--; |
345 | } | 345 | } |
@@ -836,6 +836,7 @@ static int lbs_init_adapter(struct lbs_private *priv) | |||
836 | priv->is_auto_deep_sleep_enabled = 0; | 836 | priv->is_auto_deep_sleep_enabled = 0; |
837 | priv->wakeup_dev_required = 0; | 837 | priv->wakeup_dev_required = 0; |
838 | init_waitqueue_head(&priv->ds_awake_q); | 838 | init_waitqueue_head(&priv->ds_awake_q); |
839 | priv->authtype_auto = 1; | ||
839 | 840 | ||
840 | mutex_init(&priv->lock); | 841 | mutex_init(&priv->lock); |
841 | 842 | ||