diff options
author | Nicolas Cavallari <Nicolas.Cavallari@lri.fr> | 2011-05-04 09:26:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-05 14:59:18 -0400 |
commit | 8f7f3b2fcc4ccbba0be776049df41a2f96c986ac (patch) | |
tree | 2a34ae62a5f47e6e1fec91bf6da754e2b1c4b966 | |
parent | 9b571e24a9922f79ed2440b4482cb9f11a8f1889 (diff) |
carl9170: fix allmulticast mode
Currently, the driver only disable multicast filtering when the
FIF_ALLMULTI driver flag has been just set (ie,
if changed_flags& FIF_ALLMULTI and *new_flags& FIF_ALLMULTI) or else
it will reenable multicast filtering.
But next time, this condition will be false and multicast filtering
will be reenabled, even through FIF_ALLMULTI is still set.
This mean that allmulticast only works for less than two minutes in
ad-hoc mode. This patch fixes that to disable multicast filtering
as long as FIF_ALLMULTI is set.
Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/carl9170/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index 1638468be5a3..7d5c65ea94e6 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -883,7 +883,7 @@ static void carl9170_op_configure_filter(struct ieee80211_hw *hw, | |||
883 | * then checking the error flags, later. | 883 | * then checking the error flags, later. |
884 | */ | 884 | */ |
885 | 885 | ||
886 | if (changed_flags & FIF_ALLMULTI && *new_flags & FIF_ALLMULTI) | 886 | if (*new_flags & FIF_ALLMULTI) |
887 | multicast = ~0ULL; | 887 | multicast = ~0ULL; |
888 | 888 | ||
889 | if (multicast != ar->cur_mc_hash) | 889 | if (multicast != ar->cur_mc_hash) |