* [PATCH] Staging: logical/bit and confusion
@ 2009-01-17 13:45 Roel Kluin
2009-01-21 18:07 ` patch staging-otus-logical-bit-and-confusion.patch added to gregkh-2.6 tree gregkh
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-01-17 13:45 UTC (permalink / raw)
To: lrodriguez, Greg KH; +Cc: lkml
fix logical/bit and confusion
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
Is this what was intended?
// vi drivers/staging/otus/80211core/struct.h +598
#define ExtHtCap_ExtChannelOffsetAbove 0x01
// vi drivers/staging/otus/80211core/struct.h +600
#define ExtHtCap_RecomTxWidthSet 0x04
// vi drivers/staging/otus/80211core/struct.h +525
#define HTCAP_SupChannelWidthSet 0x0002
diff --git a/drivers/staging/otus/80211core/cwm.c b/drivers/staging/otus/80211core/cwm.c
index 80f1141..1bd0b1f 100644
--- a/drivers/staging/otus/80211core/cwm.c
+++ b/drivers/staging/otus/80211core/cwm.c
@@ -75,9 +75,9 @@ void zfCoreCwmBusy(zdev_t* dev, u16_t busy)
if((wd->wlanMode == ZM_MODE_INFRASTRUCTURE || wd->wlanMode == ZM_MODE_PSEUDO ||
wd->wlanMode == ZM_MODE_IBSS)) {
- if (wd->sta.ie.HtCap.HtCapInfo && HTCAP_SupChannelWidthSet != 0 &&
- wd->sta.ie.HtInfo.ChannelInfo && ExtHtCap_RecomTxWidthSet != 0 &&
- (wd->sta.ie.HtInfo.ChannelInfo && ExtHtCap_ExtChannelOffsetAbove) == 1) {
+ if ((wd->sta.ie.HtCap.HtCapInfo & HTCAP_SupChannelWidthSet) &&
+ (wd->sta.ie.HtInfo.ChannelInfo & ExtHtCap_RecomTxWidthSet) &&
+ (wd->sta.ie.HtInfo.ChannelInfo & ExtHtCap_ExtChannelOffsetAbove)) {
wd->cwm.cw_width = CWM_WIDTH40;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* patch staging-otus-logical-bit-and-confusion.patch added to gregkh-2.6 tree
2009-01-17 13:45 [PATCH] Staging: logical/bit and confusion Roel Kluin
@ 2009-01-21 18:07 ` gregkh
0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2009-01-21 18:07 UTC (permalink / raw)
To: roel.kluin, gregkh, linux-kernel, lrodriguez
This is a note to let you know that I've just added the patch titled
Subject: Staging: otus: logical/bit and confusion
to my gregkh-2.6 tree. Its filename is
staging-otus-logical-bit-and-confusion.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From roel.kluin@gmail.com Wed Jan 21 09:43:08 2009
From: Roel Kluin <roel.kluin@gmail.com>
Date: Sat, 17 Jan 2009 14:45:29 +0100
Subject: Staging: otus: logical/bit and confusion
To: lrodriguez@atheros.com, Greg KH <gregkh@suse.de>
Cc: lkml <linux-kernel@vger.kernel.org>
Message-ID: <4971E0F9.508@gmail.com>
fix logical/bit and confusion
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/staging/otus/80211core/cwm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/drivers/staging/otus/80211core/cwm.c
+++ b/drivers/staging/otus/80211core/cwm.c
@@ -75,9 +75,9 @@ void zfCoreCwmBusy(zdev_t* dev, u16_t bu
if((wd->wlanMode == ZM_MODE_INFRASTRUCTURE || wd->wlanMode == ZM_MODE_PSEUDO ||
wd->wlanMode == ZM_MODE_IBSS)) {
- if (wd->sta.ie.HtCap.HtCapInfo && HTCAP_SupChannelWidthSet != 0 &&
- wd->sta.ie.HtInfo.ChannelInfo && ExtHtCap_RecomTxWidthSet != 0 &&
- (wd->sta.ie.HtInfo.ChannelInfo && ExtHtCap_ExtChannelOffsetAbove) == 1) {
+ if ((wd->sta.ie.HtCap.HtCapInfo & HTCAP_SupChannelWidthSet) &&
+ (wd->sta.ie.HtInfo.ChannelInfo & ExtHtCap_RecomTxWidthSet) &&
+ (wd->sta.ie.HtInfo.ChannelInfo & ExtHtCap_ExtChannelOffsetAbove)) {
wd->cwm.cw_width = CWM_WIDTH40;
}
Patches currently in gregkh-2.6 which might be from roel.kluin@gmail.com are
staging/staging-meilhaus-unsigned-won-t-get-negative-after-subtraction.patch
staging/staging-otus-logical-bit-and-confusion.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-21 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-17 13:45 [PATCH] Staging: logical/bit and confusion Roel Kluin
2009-01-21 18:07 ` patch staging-otus-logical-bit-and-confusion.patch added to gregkh-2.6 tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox