lkml.org 
[lkml]   [2009]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] 80211core: Fix &&/|| confusion
    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;

    \
     
     \ /
      Last update: 2009-12-31 13:27    [W:0.043 / U:0.036 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site