* [PATCH] 80211core: Fix &&/|| confusion
@ 2009-12-31 12:28 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-12-31 12:28 UTC (permalink / raw)
To: Greg Kroah-Hartman, devel, Andrew Morton, LKML
This always evaluates to true.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
drivers/staging/otus/80211core/cmmsta.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/otus/80211core/cmmsta.c b/drivers/staging/otus/80211core/cmmsta.c
index a11d559..5c0dea7 100644
--- a/drivers/staging/otus/80211core/cmmsta.c
+++ b/drivers/staging/otus/80211core/cmmsta.c
@@ -2808,7 +2808,7 @@ void zfStaProcessProbeReq(zdev_t* dev, zbuf_t* buf, u16_t* src)
zmw_get_wlan_dev(dev);
/* check mode : AP/IBSS */
- if ((wd->wlanMode != ZM_MODE_AP) || (wd->wlanMode != ZM_MODE_IBSS))
+ if ((wd->wlanMode != ZM_MODE_AP) && (wd->wlanMode != ZM_MODE_IBSS))
{
zm_msg0_mm(ZM_LV_3, "Ignore probe req");
return;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-31 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-31 12:28 [PATCH] 80211core: Fix &&/|| confusion Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox