Skip to contentSkip to conversation

wireless: convert !X & Y to !(X & Y) in iwl4965_is_fat_tx_allowed()

PATCH RESEND In review Roel Kluin 1 participant 2 messages Mar 25, 2008 Networking drivers (wireless)

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH RESEND 1/1 wireless: convert !X & Y to !(X & Y) in iwl4965_is_fat_tx_allowed()

from include/linux/ieee80211.h:274:
#define IEEE80211_HT_CAP_SUP_WIDTH 0x0002
---
! has a higher priority than &

---

drivers/net/wireless/iwlwifi/iwl-4965.c +1 -1
index d727de8..6576757 100644
@@ -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;
 	}
 
author
#1 lore raw

Sorry for the triple mail, it appeared to fail twice.