diff options
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 3c889f43d909..d9b8ee130c45 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kfifo.h> | 13 | #include <linux/kfifo.h> |
14 | #include <linux/stddef.h> | 14 | #include <linux/stddef.h> |
15 | #include <linux/ieee80211.h> | 15 | #include <linux/ieee80211.h> |
16 | #include <linux/slab.h> | ||
16 | #include <net/iw_handler.h> | 17 | #include <net/iw_handler.h> |
17 | #include <net/cfg80211.h> | 18 | #include <net/cfg80211.h> |
18 | 19 | ||
@@ -228,7 +229,7 @@ static void lbs_tx_timeout(struct net_device *dev) | |||
228 | 229 | ||
229 | lbs_pr_err("tx watch dog timeout\n"); | 230 | lbs_pr_err("tx watch dog timeout\n"); |
230 | 231 | ||
231 | dev->trans_start = jiffies; | 232 | dev->trans_start = jiffies; /* prevent tx timeout */ |
232 | 233 | ||
233 | if (priv->currenttxskb) | 234 | if (priv->currenttxskb) |
234 | lbs_send_tx_feedback(priv, 0); | 235 | lbs_send_tx_feedback(priv, 0); |
@@ -318,7 +319,7 @@ static int lbs_add_mcast_addrs(struct cmd_ds_mac_multicast_adr *cmd, | |||
318 | struct net_device *dev, int nr_addrs) | 319 | struct net_device *dev, int nr_addrs) |
319 | { | 320 | { |
320 | int i = nr_addrs; | 321 | int i = nr_addrs; |
321 | struct dev_mc_list *mc_list; | 322 | struct netdev_hw_addr *ha; |
322 | int cnt; | 323 | int cnt; |
323 | 324 | ||
324 | if ((dev->flags & (IFF_UP|IFF_MULTICAST)) != (IFF_UP|IFF_MULTICAST)) | 325 | if ((dev->flags & (IFF_UP|IFF_MULTICAST)) != (IFF_UP|IFF_MULTICAST)) |
@@ -326,19 +327,19 @@ static int lbs_add_mcast_addrs(struct cmd_ds_mac_multicast_adr *cmd, | |||
326 | 327 | ||
327 | netif_addr_lock_bh(dev); | 328 | netif_addr_lock_bh(dev); |
328 | cnt = netdev_mc_count(dev); | 329 | cnt = netdev_mc_count(dev); |
329 | netdev_for_each_mc_addr(mc_list, dev) { | 330 | netdev_for_each_mc_addr(ha, dev) { |
330 | if (mac_in_list(cmd->maclist, nr_addrs, mc_list->dmi_addr)) { | 331 | if (mac_in_list(cmd->maclist, nr_addrs, ha->addr)) { |
331 | lbs_deb_net("mcast address %s:%pM skipped\n", dev->name, | 332 | lbs_deb_net("mcast address %s:%pM skipped\n", dev->name, |
332 | mc_list->dmi_addr); | 333 | ha->addr); |
333 | cnt--; | 334 | cnt--; |
334 | continue; | 335 | continue; |
335 | } | 336 | } |
336 | 337 | ||
337 | if (i == MRVDRV_MAX_MULTICAST_LIST_SIZE) | 338 | if (i == MRVDRV_MAX_MULTICAST_LIST_SIZE) |
338 | break; | 339 | break; |
339 | memcpy(&cmd->maclist[6*i], mc_list->dmi_addr, ETH_ALEN); | 340 | memcpy(&cmd->maclist[6*i], ha->addr, ETH_ALEN); |
340 | 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, |
341 | mc_list->dmi_addr); | 342 | ha->addr); |
342 | i++; | 343 | i++; |
343 | cnt--; | 344 | cnt--; |
344 | } | 345 | } |