linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] orinoco: Fix function names used in debug strings
@ 2008-12-09 21:46 David Kilroy
  2008-12-09 21:46 ` [PATCH 2/2] orinoco: Fix inappropriate use of IRQ_BAP David Kilroy
  2008-12-09 22:26 ` [PATCH 1/2] orinoco: Fix function names used in debug strings Pavel Roskin
  0 siblings, 2 replies; 5+ messages in thread
From: David Kilroy @ 2008-12-09 21:46 UTC (permalink / raw)
  To: linux-wireless, orinoco-devel; +Cc: David Kilroy

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
---
 drivers/net/wireless/orinoco/orinoco_cs.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c
index 6fcf2bd..14ff274 100644
--- a/drivers/net/wireless/orinoco/orinoco_cs.c
+++ b/drivers/net/wireless/orinoco/orinoco_cs.c
@@ -178,13 +178,17 @@ static int orinoco_cs_config_check(struct pcmcia_device *p_dev,
 	/* Note that the CIS values need to be rescaled */
 	if (cfg->vcc.present & (1 << CISTPL_POWER_VNOM)) {
 		if (vcc != cfg->vcc.param[CISTPL_POWER_VNOM] / 10000) {
-			DEBUG(2, "spectrum_cs_config: Vcc mismatch (vcc = %d, CIS = %d)\n",  vcc, cfg->vcc.param[CISTPL_POWER_VNOM] / 10000);
+			DEBUG(2, "%s: Vcc mismatch (vcc = %d, CIS = %d)\n",
+			      __func__, vcc,
+			      cfg->vcc.param[CISTPL_POWER_VNOM] / 10000);
 			if (!ignore_cis_vcc)
 				goto next_entry;
 		}
 	} else if (dflt->vcc.present & (1 << CISTPL_POWER_VNOM)) {
 		if (vcc != dflt->vcc.param[CISTPL_POWER_VNOM] / 10000) {
-			DEBUG(2, "spectrum_cs_config: Vcc mismatch (vcc = %d, CIS = %d)\n",  vcc, dflt->vcc.param[CISTPL_POWER_VNOM] / 10000);
+			DEBUG(2, "%s: Vcc mismatch (vcc = %d, CIS = %d)\n",
+			      __func__, vcc,
+			      dflt->vcc.param[CISTPL_POWER_VNOM] / 10000);
 			if (!ignore_cis_vcc)
 				goto next_entry;
 		}
-- 
1.5.6.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] orinoco: Fix inappropriate use of IRQ_BAP
  2008-12-09 21:46 [PATCH 1/2] orinoco: Fix function names used in debug strings David Kilroy
@ 2008-12-09 21:46 ` David Kilroy
  2008-12-09 22:27   ` [Orinoco-devel] " Pavel Roskin
  2008-12-09 22:26 ` [PATCH 1/2] orinoco: Fix function names used in debug strings Pavel Roskin
  1 sibling, 1 reply; 5+ messages in thread
From: David Kilroy @ 2008-12-09 21:46 UTC (permalink / raw)
  To: linux-wireless, orinoco-devel; +Cc: David Kilroy

This hardware buffer should only be used from an interrupt. The
wireless event generation functions are called from a workqueue, so use
USER_BAP instead.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
---
 drivers/net/wireless/orinoco/orinoco.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/orinoco/orinoco.c b/drivers/net/wireless/orinoco/orinoco.c
index 40f662e..b33e13f 100644
--- a/drivers/net/wireless/orinoco/orinoco.c
+++ b/drivers/net/wireless/orinoco/orinoco.c
@@ -1753,7 +1753,7 @@ static void orinoco_send_bssid_wevent(struct orinoco_private *priv)
 	union iwreq_data wrqu;
 	int err;
 
-	err = hermes_read_ltv(hw, IRQ_BAP, HERMES_RID_CURRENTBSSID,
+	err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CURRENTBSSID,
 			      ETH_ALEN, NULL, wrqu.ap_addr.sa_data);
 	if (err != 0)
 		return;
@@ -1776,7 +1776,7 @@ static void orinoco_send_assocreqie_wevent(struct orinoco_private *priv)
 	if (!priv->has_wpa)
 		return;
 
-	err = hermes_read_ltv(hw, IRQ_BAP, HERMES_RID_CURRENT_ASSOC_REQ_INFO,
+	err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CURRENT_ASSOC_REQ_INFO,
 			      sizeof(buf), NULL, &buf);
 	if (err != 0)
 		return;
@@ -1806,7 +1806,7 @@ static void orinoco_send_assocrespie_wevent(struct orinoco_private *priv)
 	if (!priv->has_wpa)
 		return;
 
-	err = hermes_read_ltv(hw, IRQ_BAP, HERMES_RID_CURRENT_ASSOC_RESP_INFO,
+	err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CURRENT_ASSOC_RESP_INFO,
 			      sizeof(buf), NULL, &buf);
 	if (err != 0)
 		return;
-- 
1.5.6.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] orinoco: Fix function names used in debug strings
  2008-12-09 21:46 [PATCH 1/2] orinoco: Fix function names used in debug strings David Kilroy
  2008-12-09 21:46 ` [PATCH 2/2] orinoco: Fix inappropriate use of IRQ_BAP David Kilroy
@ 2008-12-09 22:26 ` Pavel Roskin
  2008-12-09 22:53   ` Dave
  1 sibling, 1 reply; 5+ messages in thread
From: Pavel Roskin @ 2008-12-09 22:26 UTC (permalink / raw)
  To: David Kilroy; +Cc: linux-wireless, orinoco-devel

On Tue, 2008-12-09 at 21:46 +0000, David Kilroy wrote:
> Signed-off-by: David Kilroy <kilroyd@googlemail.com>

Signed-off-by: Pavel Roskin <proski@gnu.org>

Please consider doing the same in spectrum_cs.c, just for consistency.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Orinoco-devel] [PATCH 2/2] orinoco: Fix inappropriate use of IRQ_BAP
  2008-12-09 21:46 ` [PATCH 2/2] orinoco: Fix inappropriate use of IRQ_BAP David Kilroy
@ 2008-12-09 22:27   ` Pavel Roskin
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Roskin @ 2008-12-09 22:27 UTC (permalink / raw)
  To: David Kilroy; +Cc: linux-wireless, orinoco-devel

On Tue, 2008-12-09 at 21:46 +0000, David Kilroy wrote:
> This hardware buffer should only be used from an interrupt. The
> wireless event generation functions are called from a workqueue, so use
> USER_BAP instead.
> 
> Signed-off-by: David Kilroy <kilroyd@googlemail.com>

Signed-off-by: Pavel Roskin <proski@gnu.org>

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] orinoco: Fix function names used in debug strings
  2008-12-09 22:26 ` [PATCH 1/2] orinoco: Fix function names used in debug strings Pavel Roskin
@ 2008-12-09 22:53   ` Dave
  0 siblings, 0 replies; 5+ messages in thread
From: Dave @ 2008-12-09 22:53 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless, orinoco-devel

Pavel Roskin wrote:
> On Tue, 2008-12-09 at 21:46 +0000, David Kilroy wrote:
>> Signed-off-by: David Kilroy <kilroyd@googlemail.com>
> 
> Signed-off-by: Pavel Roskin <proski@gnu.org>
> 
> Please consider doing the same in spectrum_cs.c, just for consistency.

Coming up. Don't know why I didn't think to check it...

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-09 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-09 21:46 [PATCH 1/2] orinoco: Fix function names used in debug strings David Kilroy
2008-12-09 21:46 ` [PATCH 2/2] orinoco: Fix inappropriate use of IRQ_BAP David Kilroy
2008-12-09 22:27   ` [Orinoco-devel] " Pavel Roskin
2008-12-09 22:26 ` [PATCH 1/2] orinoco: Fix function names used in debug strings Pavel Roskin
2008-12-09 22:53   ` Dave

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).