* [PATCH] p54: misplaced parentheses
@ 2009-02-15 15:27 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-02-15 15:27 UTC (permalink / raw)
To: flamingice; +Cc: linux-wireless, Andrew Morton
Only FIF_FCSFAIL is set due to parentheses
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
// include/net/mac80211.h vi +1133
enum ieee80211_filter_flags {
FIF_PROMISC_IN_BSS = 1<<0,
...
};
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c
index 34561e6..530daee 100644
--- a/drivers/net/wireless/p54/p54common.c
+++ b/drivers/net/wireless/p54/p54common.c
@@ -1932,8 +1932,8 @@ static void p54_configure_filter(struct ieee80211_hw *dev,
struct p54_common *priv = dev->priv;
*total_flags &= FIF_PROMISC_IN_BSS |
- (*total_flags & FIF_PROMISC_IN_BSS) ?
- FIF_FCSFAIL : 0;
+ (*total_flags & FIF_PROMISC_IN_BSS ?
+ FIF_FCSFAIL : 0);
priv->filter_flags = *total_flags;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-15 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15 15:27 [PATCH] p54: misplaced parentheses Roel Kluin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.