diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-29 10:59:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-01 17:13:20 -0400 |
commit | bc5213f468b4d0520a06e27ea2cc9724bc5b896c (patch) | |
tree | 81f89a67d630dd5941db986f1363df068997eaf4 /drivers/net/wireless/rt2x00/rt2x00mac.c | |
parent | e5472978ef16051337913f57b2f22982f3e9e4c2 (diff) |
rt2x00: Invert scheduled packet_filter check
Invert the check for scheduling the packet_filter configuration.
When DRIVER_REQUIRE_SCHEDULED is not set we should immediately
configure the the filter.
This fixes the 'infinite calls to rt2x00mc_configure_filter'
bug reported by Bas Hulsken.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 17b6bb034ebf..a0adf5a04aa0 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -418,9 +418,9 @@ void rt2x00mac_configure_filter(struct ieee80211_hw *hw, | |||
418 | rt2x00dev->packet_filter = *total_flags; | 418 | rt2x00dev->packet_filter = *total_flags; |
419 | 419 | ||
420 | if (!test_bit(DRIVER_REQUIRE_SCHEDULED, &rt2x00dev->flags)) | 420 | if (!test_bit(DRIVER_REQUIRE_SCHEDULED, &rt2x00dev->flags)) |
421 | queue_work(rt2x00dev->hw->workqueue, &rt2x00dev->filter_work); | ||
422 | else | ||
423 | rt2x00dev->ops->lib->config_filter(rt2x00dev, *total_flags); | 421 | rt2x00dev->ops->lib->config_filter(rt2x00dev, *total_flags); |
422 | else | ||
423 | queue_work(rt2x00dev->hw->workqueue, &rt2x00dev->filter_work); | ||
424 | } | 424 | } |
425 | EXPORT_SYMBOL_GPL(rt2x00mac_configure_filter); | 425 | EXPORT_SYMBOL_GPL(rt2x00mac_configure_filter); |
426 | 426 | ||