login
Header Space

 
 

[PATCH][RESEND] wireless: convert !X & Y to !(X & Y) in iwl4965_is_fat_tx_allowed()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <yi.zhu@...>, <reinette.chatre@...>
Cc: <linux-wireless@...>, lkml <linux-kernel@...>
Date: Tuesday, March 25, 2008 - 12:03 pm

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;
 	}
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][RESEND] wireless: convert !X & Y to !(X & Y)..., Roel Kluin, (Tue Mar 25, 12:03 pm)
RE: [PATCH][RESEND] wireless: convert !X &amp; Y to !(X &amp..., Chatre, Reinette, (Tue Mar 25, 12:30 pm)
speck-geostationary