diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-14 22:53:54 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-14 22:53:54 +0000 |
commit | e30b799cdce79c4fe33c8bd09d2f289baf788382 (patch) | |
tree | 0bfc5f31cc4ea54f7253c14f510eac831f1495d0 /package/mac80211/patches/017-carl9170_addr_backport.patch | |
parent | 872d5928d93dcbb73d86a06bfe3981cbd3e35baf (diff) |
mac80211: upgrade to wireless-testing 2010-09-14, replace the external carl9170 with the recently merged upstream version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23061 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/017-carl9170_addr_backport.patch')
-rw-r--r-- | package/mac80211/patches/017-carl9170_addr_backport.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/mac80211/patches/017-carl9170_addr_backport.patch b/package/mac80211/patches/017-carl9170_addr_backport.patch new file mode 100644 index 0000000000..0d3774b5c0 --- /dev/null +++ b/package/mac80211/patches/017-carl9170_addr_backport.patch @@ -0,0 +1,38 @@ +--- a/drivers/net/wireless/ath/carl9170/main.c ++++ b/drivers/net/wireless/ath/carl9170/main.c +@@ -811,16 +811,34 @@ out: + } + + static u64 carl9170_op_prepare_multicast(struct ieee80211_hw *hw, +- struct netdev_hw_addr_list *mc_list) ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) ++ struct netdev_hw_addr_list *mc_list) ++#else ++ int mc_count, struct dev_addr_list *ha) ++#endif + { ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) + struct netdev_hw_addr *ha; ++#else ++ int i; ++#endif + u64 mchash; + + /* always get broadcast frames */ + mchash = 1ULL << (0xff >> 2); + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) + netdev_hw_addr_list_for_each(ha, mc_list) + mchash |= 1ULL << (ha->addr[5] >> 2); ++#else ++ for (i = 0; i < mc_count; i++) { ++ if (!ha) ++ break; ++ ++ mchash |= 1ULL << (ha->dmi_addr[5] >> 2); ++ ha = ha->next; ++ } ++#endif + + return mchash; + } |