Staging: rtl8187se, rtl8192e: fix '&' vs '|' bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Jun 2012 17:05:16 +0000 (20:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 17:52:32 +0000 (10:52 -0700)
commit6fe864409b54f60ed36804752acfd148da459e53
treeec25ce682c5d436720eca30c174d8900289b5552
parent0cf5755f00f555d7cef4a7be0ae5aac5e4bdf07d
Staging: rtl8187se, rtl8192e: fix '&' vs '|' bugs

The original code is equivalent to:

wrqu->retry.flags = 0x1000 & 0x0002;

so it just sets .flags to zero.  We should be ORing the values together
like r8192_wx_get_retry() does in drivers/staging/rtl8192u/r8192U_wx.c.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/r8180_wx.c
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c