aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ar9170/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/main.c')
-rw-r--r--drivers/net/wireless/ath/ar9170/main.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c
index b0654c873300..2abc87578994 100644
--- a/drivers/net/wireless/ath/ar9170/main.c
+++ b/drivers/net/wireless/ath/ar9170/main.c
@@ -38,6 +38,7 @@
38 */ 38 */
39 39
40#include <linux/init.h> 40#include <linux/init.h>
41#include <linux/slab.h>
41#include <linux/module.h> 42#include <linux/module.h>
42#include <linux/etherdevice.h> 43#include <linux/etherdevice.h>
43#include <net/mac80211.h> 44#include <net/mac80211.h>
@@ -1619,21 +1620,17 @@ out:
1619 return err; 1620 return err;
1620} 1621}
1621 1622
1622static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, int mc_count, 1623static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw,
1623 struct dev_addr_list *mclist) 1624 struct netdev_hw_addr_list *mc_list)
1624{ 1625{
1625 u64 mchash; 1626 u64 mchash;
1626 int i; 1627 struct netdev_hw_addr *ha;
1627 1628
1628 /* always get broadcast frames */ 1629 /* always get broadcast frames */
1629 mchash = 1ULL << (0xff >> 2); 1630 mchash = 1ULL << (0xff >> 2);
1630 1631
1631 for (i = 0; i < mc_count; i++) { 1632 netdev_hw_addr_list_for_each(ha, mc_list)
1632 if (WARN_ON(!mclist)) 1633 mchash |= 1ULL << (ha->addr[5] >> 2);
1633 break;
1634 mchash |= 1ULL << (mclist->dmi_addr[5] >> 2);
1635 mclist = mclist->next;
1636 }
1637 1634
1638 return mchash; 1635 return mchash;
1639} 1636}
@@ -1985,7 +1982,7 @@ void *ar9170_alloc(size_t priv_size)
1985 /* 1982 /*
1986 * this buffer is used for rx stream reconstruction. 1983 * this buffer is used for rx stream reconstruction.
1987 * Under heavy load this device (or the transport layer?) 1984 * Under heavy load this device (or the transport layer?)
1988 * tends to split the streams into seperate rx descriptors. 1985 * tends to split the streams into separate rx descriptors.
1989 */ 1986 */
1990 1987
1991 skb = __dev_alloc_skb(AR9170_RX_STREAM_MAX_SIZE, GFP_KERNEL); 1988 skb = __dev_alloc_skb(AR9170_RX_STREAM_MAX_SIZE, GFP_KERNEL);