From: "Andrés Ambrois" <andresambrois@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: Re: hostap oops
Date: Fri, 23 May 2008 21:18:03 -0300 [thread overview]
Message-ID: <200805232118.08189.andresambrois@gmail.com> (raw)
In-Reply-To: <48375141.5000704@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 3519 bytes --]
On Friday 23 May 2008 20:20:33 Thomas Kunze wrote:
> Stefanik Gábor wrote:
> > Hmm... can you make the comments and variables English? You know,
> > Linus Torvalds is Finnish, yet he still uses English comments and
> > variable names.
>
> I would like to, but I can't read spanish (?). I didn't write this
> patch, I googled it.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless"
> in the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Here goes the translation.
Just trying to make myself useful :).
-Andrés
--
diff --git a/drivers/net/wireless/hostap/hostap_cs.c
b/drivers/net/wireless/hostap/hostap_cs.c
index ed4317a..804f365 100644
--- a/drivers/net/wireless/hostap/hostap_cs.c
+++ b/drivers/net/wireless/hostap/hostap_cs.c
@@ -35,7 +35,7 @@ static int ignore_cis_vcc;
module_param(ignore_cis_vcc, int, 0444);
MODULE_PARM_DESC(ignore_cis_vcc, "Ignore broken CIS VCC entry");
-
+int activate=0;
/* struct local_info::hw_priv */
struct hostap_cs_priv {
dev_node_t node;
@@ -499,11 +499,13 @@ static int hostap_cs_probe(struct pcmcia_device *p_dev)
PDEBUG(DEBUG_HW, "%s: setting Vcc=33 (constant)\n", dev_info);
p_dev->conf.IntType = INT_MEMORY_AND_IO;
-
+
+ activate=0;
ret = prism2_config(p_dev);
if (ret) {
PDEBUG(DEBUG_EXTRA, "prism2_config() failed\n");
}
+ activate=1;
return ret;
}
diff --git a/drivers/net/wireless/hostap/hostap_hw.c
b/drivers/net/wireless/hostap/hostap_hw.c
index cdf90c4..d79a2a5 100644
--- a/drivers/net/wireless/hostap/hostap_hw.c
+++ b/drivers/net/wireless/hostap/hostap_hw.c
@@ -54,6 +54,7 @@
#include "hostap.h"
#include "hostap_ap.h"
+extern int activate;
/* #define final_version */
@@ -1497,6 +1498,8 @@ static int prism2_hw_config(struct net_device *dev, int
initial)
if (local->hw_downloading)
return 1;
+ activate=1;
+
if (prism2_hw_init(dev, initial)) {
return local->no_pri ? 0 : 1;
}
@@ -2628,8 +2631,15 @@ static irqreturn_t prism2_interrupt(int irq, void
*dev_id)
int events = 0;
u16 ev;
- iface = netdev_priv(dev);
- local = iface->local;
+
+ // All the input parameters are correct (not null). At the moment,
this is the only way I know to detect the problem.
+ if (!activate) {
+ printk("hostap_hw.c: INTERRUPT BEFORE DEVICE INIT!\n");
+ return IRQ_HANDLED;
+ }
+
+ iface = netdev_priv(dev);
+ local = iface->local;
prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_INTERRUPT, 0, 0);
diff --git a/drivers/net/wireless/hostap/hostap_pci.c
b/drivers/net/wireless/hostap/hostap_pci.c
index 3a874fc..df58aa3 100644
--- a/drivers/net/wireless/hostap/hostap_pci.c
+++ b/drivers/net/wireless/hostap/hostap_pci.c
@@ -19,6 +19,7 @@
#include "hostap_wlan.h"
+int activate=1;
static char *dev_info = "hostap_pci";
diff --git a/drivers/net/wireless/hostap/hostap_plx.c
b/drivers/net/wireless/hostap/hostap_plx.c
index cbf15d7..4475174 100644
--- a/drivers/net/wireless/hostap/hostap_plx.c
+++ b/drivers/net/wireless/hostap/hostap_plx.c
@@ -21,7 +21,7 @@
#include <asm/io.h>
#include "hostap_wlan.h"
-
+int activate=1;
static char *dev_info = "hostap_plx";
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-05-24 0:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 23:11 hostap oops Thomas Kunze
2008-05-23 23:16 ` Stefanik Gábor
2008-05-23 23:20 ` Thomas Kunze
2008-05-24 0:18 ` Andrés Ambrois [this message]
2008-05-24 6:16 ` Jouni Malinen
2008-05-24 11:35 ` Thomas Kunze
2008-05-30 17:05 ` Jouni Malinen
2008-05-29 19:11 ` Thomas Kunze
[not found] ` <69e28c910805291240k306f1a43j8b3b844ea42b7683@mail.gmail.com>
2008-05-29 20:24 ` Thomas Kunze
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805232118.08189.andresambrois@gmail.com \
--to=andresambrois@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.