Skip to contentSkip to conversation

iwlwifi 3945: Fix IWL_SCAN compile error

PATCH In review Tim Gardner 2 participants 5 messages Jul 13, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#1 lore raw
In reply to Tim Gardner

Hi Tim,

Quoted 18 lines · Tim Gardner

From 2c7c806570ad72f5af2e778f2fe71aae7d727e02 Mon Sep 17 00:00:00 2001
From: Tim Gardner <[email protected]>
Date: Mon, 13 Jul 2009 12:53:32 -0600
Subject: [PATCH] iwlwifi 3945: Fix IWL_DEBUG_SCAN compile

Added a missing parameter in the macro invocation to correct a compile error when CONFIG_IWLWIFI_DEBUG is enabled.

---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl3945-base.c +0 -0
index 2564288..67332fb 100644

drivers/net/wireless/iwlwifi/iwl3945-base.c static void iwl3945_bg_request_scan(struct work_struct *data) · line 2968

Quoted 8 lines
drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -1
@@ -2962,7 +2962,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
 	}
 
 	if (scan->channel_count == 0) {
-		IWL_DEBUG_SCAN("channel count %d\n", scan->channel_count);
+		IWL_DEBUG_SCAN(priv,"channel count %d\n", scan->channel_count);
 		goto done;
 	}
 

On which code did you base this patch?

Reinette

#2 lore raw
Quoted 32 lines · reinette chatre

Hi Tim,

Quoted 18 lines · Tim Gardner

From 2c7c806570ad72f5af2e778f2fe71aae7d727e02 Mon Sep 17 00:00:00 2001
From: Tim Gardner <[email protected]>
Date: Mon, 13 Jul 2009 12:53:32 -0600
Subject: [PATCH] iwlwifi 3945: Fix IWL_DEBUG_SCAN compile

Added a missing parameter in the macro invocation to correct a compile error when CONFIG_IWLWIFI_DEBUG is enabled.

---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl3945-base.c +0 -0
index 2564288..67332fb 100644

drivers/net/wireless/iwlwifi/iwl3945-base.c static void iwl3945_bg_request_scan(struct work_struct *data) · line 2968

Quoted 8 lines
drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -1
@@ -2962,7 +2962,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
 	}
 
 	if (scan->channel_count == 0) {
-		IWL_DEBUG_SCAN("channel count %d\n", scan->channel_count);
+		IWL_DEBUG_SCAN(priv,"channel count %d\n", scan->channel_count);
 		goto done;
 	}
 

On which code did you base this patch?

Quoted 3 lines

Reinette

Head of Linus' tree, but I see that its already fixed in wireless-testing. I guess I pulled the trigger too soon.

rtg

Signature · 2 lines
Tim Gardner [email protected] www.tpi.com
OR 503-601-0234 x102 MT 406-443-5357
#0 lore raw

PATCH 1/1 iwlwifi 3945: Fix IWL_SCAN compile error

Quoted 1 line

From 2c7c806570ad72f5af2e778f2fe71aae7d727e02 Mon Sep 17 00:00:00 2001

From: Tim Gardner <[email protected]>
Date: Mon, 13 Jul 2009 12:53:32 -0600
Subject: [PATCH] iwlwifi 3945: Fix IWL_DEBUG_SCAN compile

Added a missing parameter in the macro invocation to correct a compile error when CONFIG_IWLWIFI_DEBUG is enabled.

---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -1
index 2564288..67332fb 100644
@@ -2962,7 +2962,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
 	}
 
 	if (scan->channel_count == 0) {
-		IWL_DEBUG_SCAN("channel count %d\n", scan->channel_count);
+		IWL_DEBUG_SCAN(priv,"channel count %d\n", scan->channel_count);
 		goto done;
 	}
 
Signature · 1 line
1.6.3.3
#3 lore raw
In reply to Tim Gardner

Hi Tim,

Quoted 33 lines · Tim Gardner
Quoted 32 lines · reinette chatre

Hi Tim,

Quoted 18 lines · Tim Gardner

From 2c7c806570ad72f5af2e778f2fe71aae7d727e02 Mon Sep 17 00:00:00 2001
From: Tim Gardner <[email protected]>
Date: Mon, 13 Jul 2009 12:53:32 -0600
Subject: [PATCH] iwlwifi 3945: Fix IWL_DEBUG_SCAN compile

Added a missing parameter in the macro invocation to correct a compile error when CONFIG_IWLWIFI_DEBUG is enabled.

---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl3945-base.c +0 -0
index 2564288..67332fb 100644

drivers/net/wireless/iwlwifi/iwl3945-base.c static void iwl3945_bg_request_scan(struct work_struct *data) · line 2968

Quoted 8 lines
drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -1
@@ -2962,7 +2962,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
 	}
 
 	if (scan->channel_count == 0) {
-		IWL_DEBUG_SCAN("channel count %d\n", scan->channel_count);
+		IWL_DEBUG_SCAN(priv,"channel count %d\n", scan->channel_count);
 		goto done;
 	}
 

On which code did you base this patch?

Quoted 6 lines
Quoted 3 lines

Reinette

Head of Linus' tree, but I see that its already fixed in wireless-testing. I guess I pulled the trigger too soon.

I just pulled the latest from Linus but cannot see this problem. We also do not have anything related to this pending for 2.6.31.

Reinette

#4 lore raw
Quoted 38 lines · reinette chatre

Hi Tim,

Quoted 35 lines · Tim Gardner
Quoted 34 lines · reinette chatre

Hi Tim,

Quoted 18 lines · Tim Gardner

From 2c7c806570ad72f5af2e778f2fe71aae7d727e02 Mon Sep 17 00:00:00 2001
From: Tim Gardner <[email protected]>
Date: Mon, 13 Jul 2009 12:53:32 -0600
Subject: [PATCH] iwlwifi 3945: Fix IWL_DEBUG_SCAN compile

Added a missing parameter in the macro invocation to correct a compile error when CONFIG_IWLWIFI_DEBUG is enabled.

---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl3945-base.c +0 -0
index 2564288..67332fb 100644

drivers/net/wireless/iwlwifi/iwl3945-base.c static void iwl3945_bg_request_scan(struct work_struct *data) · line 2968

Quoted 8 lines
drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -1
@@ -2962,7 +2962,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
 	}
 
 	if (scan->channel_count == 0) {
-		IWL_DEBUG_SCAN("channel count %d\n", scan->channel_count);
+		IWL_DEBUG_SCAN(priv,"channel count %d\n", scan->channel_count);
 		goto done;
 	}
 

On which code did you base this patch?

Reinette

Quoted 9 lines
Quoted 2 lines

Head of Linus' tree, but I see that its already fixed in wireless-testing. I guess I pulled the trigger too soon.

I just pulled the latest from Linus but cannot see this problem. We also do not have anything related to this pending for 2.6.31.

Reinette

You are correct. It appears I've got a rebase issue. I rebased Ubuntu Karmic against linus git 4a390e07fc53ce9dd615d7b788e9ecc73f87ad94 and find that there is one extra commit when comparing the output of 'git log --pretty=oneline drivers/net/wireless/iwlwifi/iwl3945-base.c' . The last commit that touches iwl3945-base.c in the Karmic tree is 'iwl3945:
do not send scan command if channel count zero', which is totally bizarre. If I look at the patches created by 'git log -p drivers/net/wireless/iwlwifi/iwl3945-base.c', the patch that implements 'iwl3945: do not send scan command if channel count zero' is duplicated. How can that be? Guess I'll keep digging.

rtg

Signature · 2 lines
Tim Gardner [email protected] www.tpi.com
OR 503-601-0234 x102 MT 406-443-5357