>From 923c6f800cfb68d3e64317b45ad56c76804a6287 Mon Sep 17 00:00:00 2001
From: Eliad Peller <[email protected]>
Date: Sun, 19 Sep 2010 18:55:09 +0200
Subject: [PATCH 09/26] wl1271: bugfix: use bitwise-AND instead of logical-AND

typo - while looking for specific bits we should do a bitwise-AND instead of 
logical-AND.

Signed-off-by: Eliad Peller <[email protected]>
Acked-by: Luciano Coelho <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: Claude Brouat <[email protected]>
---
 drivers/net/wireless/wl12xx/wl1271_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c 
b/drivers/net/wireless/wl12xx/wl1271_main.c
index 6bd748e..3e19e9a 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -1675,7 +1675,7 @@ static void wl1271_op_bss_info_changed(struct 
ieee80211_hw *hw,
     if (ret < 0)
           goto out;

-    if ((changed && BSS_CHANGED_BEACON_INT) &&
+    if ((changed & BSS_CHANGED_BEACON_INT) &&
         (wl->bss_type == BSS_TYPE_IBSS)) {
           wl1271_debug(DEBUG_ADHOC, "ad-hoc beacon interval updated: %d",
                bss_conf->beacon_int);
@@ -1684,7 +1684,7 @@ static void wl1271_op_bss_info_changed(struct 
ieee80211_hw *hw,
           do_join = true;
     }

-    if ((changed && BSS_CHANGED_BEACON) &&
+    if ((changed & BSS_CHANGED_BEACON) &&
         (wl->bss_type == BSS_TYPE_IBSS)) {
           struct sk_buff *beacon = ieee80211_beacon_get(hw, vif);

--
1.6.3.3




Claude BROUAT
UMG/MIPE/WSIV  System Integrator
Office:    +33 (0)1 72 21 04 54
mailto: mailto:[email protected]

Intel Corp. SAS
134, av du Général Eisenhower
BP 73586
31100 TOULOUSE
France



---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Attachment: 0009-wl1271-bugfix-use-bitwise-AND-instead-of-logical-AND.patch
Description: 0009-wl1271-bugfix-use-bitwise-AND-instead-of-logical-AND.patch

_______________________________________________
Meego-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to