Skip to content

Commit

Permalink
Staging: otus: 80211core: Fix &&/|| confusion
Browse files Browse the repository at this point in the history
This always evaluates to true.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
RoelKluin authored and gregkh committed Mar 4, 2010
1 parent f3557cc commit 274350f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/otus/80211core/cmmsta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 274350f

Please sign in to comment.