Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757871AbYCYQFX (ORCPT ); Tue, 25 Mar 2008 12:05:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755991AbYCYQFJ (ORCPT ); Tue, 25 Mar 2008 12:05:09 -0400 Received: from smtp-out1.tiscali.nl ([195.241.79.176]:40752 "EHLO smtp-out1.tiscali.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755085AbYCYQFI (ORCPT ); Tue, 25 Mar 2008 12:05:08 -0400 Message-ID: <47E9224A.7050505@tiscali.nl> Date: Tue, 25 Mar 2008 17:03:22 +0100 From: Roel Kluin <12o3l@tiscali.nl> User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: yi.zhu@intel.com, reinette.chatre@intel.com CC: linux-wireless@vger.kernel.org, lkml Subject: [PATCH][RESEND] wireless: convert !X & Y to !(X & Y) in iwl4965_is_fat_tx_allowed() Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 25 from include/linux/ieee80211.h:274: #define IEEE80211_HT_CAP_SUP_WIDTH 0x0002 --- ! has a higher priority than & Signed-off-by: Roel Kluin <12o3l@tiscali.nl> --- diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index d727de8..6576757 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c @@ -4589,7 +4589,7 @@ static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv, if (sta_ht_inf) { if ((!sta_ht_inf->ht_supported) || - (!sta_ht_inf->cap & IEEE80211_HT_CAP_SUP_WIDTH)) + (!(sta_ht_inf->cap & IEEE80211_HT_CAP_SUP_WIDTH))) return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/