wireless: convert !X & Y to !(X & Y) in iwl4965_is_fat_tx_allowed()
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
@@ -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 ; }
Quoted 12 lines · Roel Kluin
from
include/linux/ieee80211.h:274:
#defineIEEE80211_HT_CAP_SUP_WIDTH0x0002---
! has a higher priority than &Signed-off-by Roel Kluin <[email protected]>---
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 · line 4593
Quoted 6 lines
drivers/net/wireless/iwlwifi/iwl-4965.c +1
-1@@ -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;
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 · line 4594
Quoted 1 line
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0}
This patch has already been acked and merged into wireless-testing, and afaik already pushed further upstream.
Reinette
Quoted 21 lines · Reinette
Quoted 12 lines · Roel Kluin
from
include/linux/ieee80211.h:274:
#defineIEEE80211_HT_CAP_SUP_WIDTH0x0002---
! has a higher priority than &Signed-off-by Roel Kluin <[email protected]>---
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0drivers/net/wireless/iwlwifi/iwl-4965.c static u8 · line 4593
Quoted 6 lines
drivers/net/wireless/iwlwifi/iwl-4965.c +1
-1@@ -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;
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 · line 4594
Quoted 1 line
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0}This patch has already been acked and merged into wireless-testing, and afaik already pushed further upstream.
Yes, but FWIW the problem exists in the 2.6.25 stream as well. I've been holding-back a patch to fix it there, trying to decide if it is worth creating the merge conflict to fix it there. I'm inclined to think it is better to let things lay as they are and send that patch for the -stable series once 2.6.25 ships.
Any thoughts on that?
John
Signature · 2 lines
John W. Linville [email protected]
RE: [PATCH][RESEND] wireless: convert !X & Y to !(X & Y) iniwl4965_is_fat_tx_allowed()
Quoted 17 lines · John W. Linville
Quoted 16 lines · Reinette
Quoted 14 lines · Roel Kluin
from
include/linux/ieee80211.h:274:
#defineIEEE80211_HT_CAP_SUP_WIDTH0x0002---
! has a higher priority than &Signed-off-by Roel Kluin <[email protected]>---
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0@@ -4589,7 +4589,7 @@ static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv,
Quoted 4 lines
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv, · line 4592
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c +1
-1if (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;
Quoted 5 lines
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 · line 4594
Quoted 1 line
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0}This patch has already been acked and merged into wireless-testing, and afaik already pushed further upstream.
Quoted 7 lines
Yes, but FWIW the problem exists in the 2.6.25 stream as well. I've been holding-back a patch to fix it there, trying to decide if it is worth creating the merge conflict to fix it there. I'm inclined to think it is better to let things lay as they are and send that patch for the -stable series once 2.6.25 ships.
Any thoughts on that?
I see. The patch is small and I thus assume a merge conflict will be easy to resolve. Yet ... I do not know what is really involved in the upstream code movements, while I know that you do. If you say it is better to wait until stable then I am ok with it.
Thanks
Reinette
Re: [PATCH][RESEND] wireless: convert !X & Y to !(X & Y) iniwl4965_is_fat_tx_allowed()
Quoted 36 lines · Reinette
Quoted 17 lines · John W. Linville
Quoted 16 lines · Reinette
Quoted 14 lines · Roel Kluin
from
include/linux/ieee80211.h:274:
#defineIEEE80211_HT_CAP_SUP_WIDTH0x0002---
! has a higher priority than &Signed-off-by Roel Kluin <[email protected]>---
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0@@ -4589,7 +4589,7 @@ static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv,Quoted 4 lines
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv, · line 4592
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c +1
-1if (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;
Quoted 11 lines
Quoted 4 lines
drivers/net/wireless/iwlwifi/iwl-4965.c static u8 · line 4594
Quoted 1 line
drivers/net/wireless/iwlwifi/iwl-4965.c +0
-0}This patch has already been acked and merged into wireless-testing, and afaik already pushed further upstream.
Yes, but FWIW the problem exists in the 2.6.25 stream as well. I've been holding-back a patch to fix it there, trying to decide if it is worth creating the merge conflict to fix it there. I'm inclined to think it is better to let things lay as they are and send that patch for the -stable series once 2.6.25 ships.
Quoted 6 lines
Quoted 1 line
Any thoughts on that?
I see. The patch is small and I thus assume a merge conflict will be easy to resolve. Yet ... I do not know what is really involved in the upstream code movements, while I know that you do. If you say it is better to wait until stable then I am ok with it.
I have to find the patch but I believe we've published a fix for this long before this particular patch was born.
Anyhow if HT is enabled in 2.6.25 I would prefer a conflict then a bug.
Thanks
Tomas