提交 fbb0a27a 编写于 作者: A Adam Baker 提交者: John W. Linville

rt2x00: never disable multicast because it disables broadcast too

On rt73 and rt61 disabling reception of multicast packets also disables
broadcast traffic which we never want to do. Therefore we should never
disable multicast.
Signed-off-by: NAdam Baker <linux@baker-net.org.uk>
Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 5f0547c2
...@@ -2302,9 +2302,9 @@ static void rt61pci_configure_filter(struct ieee80211_hw *hw, ...@@ -2302,9 +2302,9 @@ static void rt61pci_configure_filter(struct ieee80211_hw *hw,
* Apply some rules to the filters: * Apply some rules to the filters:
* - Some filters imply different filters to be set. * - Some filters imply different filters to be set.
* - Some things we can't filter out at all. * - Some things we can't filter out at all.
* - Multicast filter seems to kill broadcast traffic so never use it.
*/ */
if (mc_count) *total_flags |= FIF_ALLMULTI;
*total_flags |= FIF_ALLMULTI;
if (*total_flags & FIF_OTHER_BSS || if (*total_flags & FIF_OTHER_BSS ||
*total_flags & FIF_PROMISC_IN_BSS) *total_flags & FIF_PROMISC_IN_BSS)
*total_flags |= FIF_PROMISC_IN_BSS | FIF_OTHER_BSS; *total_flags |= FIF_PROMISC_IN_BSS | FIF_OTHER_BSS;
......
...@@ -1869,9 +1869,9 @@ static void rt73usb_configure_filter(struct ieee80211_hw *hw, ...@@ -1869,9 +1869,9 @@ static void rt73usb_configure_filter(struct ieee80211_hw *hw,
* Apply some rules to the filters: * Apply some rules to the filters:
* - Some filters imply different filters to be set. * - Some filters imply different filters to be set.
* - Some things we can't filter out at all. * - Some things we can't filter out at all.
* - Multicast filter seems to kill broadcast traffic so never use it.
*/ */
if (mc_count) *total_flags |= FIF_ALLMULTI;
*total_flags |= FIF_ALLMULTI;
if (*total_flags & FIF_OTHER_BSS || if (*total_flags & FIF_OTHER_BSS ||
*total_flags & FIF_PROMISC_IN_BSS) *total_flags & FIF_PROMISC_IN_BSS)
*total_flags |= FIF_PROMISC_IN_BSS | FIF_OTHER_BSS; *total_flags |= FIF_PROMISC_IN_BSS | FIF_OTHER_BSS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册