diff options
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/main.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index 257c734733d1..b43d4b006d7e 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c | |||
@@ -2045,21 +2045,17 @@ out: | |||
2045 | return err; | 2045 | return err; |
2046 | } | 2046 | } |
2047 | 2047 | ||
2048 | static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, int mc_count, | 2048 | static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, |
2049 | struct dev_addr_list *mclist) | 2049 | struct netdev_hw_addr_list *mc_list) |
2050 | { | 2050 | { |
2051 | u64 mchash; | 2051 | u64 mchash; |
2052 | int i; | 2052 | struct netdev_hw_addr *ha; |
2053 | 2053 | ||
2054 | /* always get broadcast frames */ | 2054 | /* always get broadcast frames */ |
2055 | mchash = 1ULL << (0xff >> 2); | 2055 | mchash = 1ULL << (0xff >> 2); |
2056 | 2056 | ||
2057 | for (i = 0; i < mc_count; i++) { | 2057 | netdev_hw_addr_list_for_each(ha, mc_list) |
2058 | if (WARN_ON(!mclist)) | 2058 | mchash |= 1ULL << (ha->addr[5] >> 2); |
2059 | break; | ||
2060 | mchash |= 1ULL << (mclist->dmi_addr[5] >> 2); | ||
2061 | mclist = mclist->next; | ||
2062 | } | ||
2063 | 2059 | ||
2064 | return mchash; | 2060 | return mchash; |
2065 | } | 2061 | } |