Skip to contentSkip to conversation

workaround zd1201 interference problem

PATCH In review Pavel Machek 4 participants 12 messages Jun 7, 2006 – Jul 12, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 workaround zd1201 interference problem

zd1201 likes to start up shouting, interfering with all wifis in range. It is capable of stopping ipw2200 up-to few meters away, and stops other cards at smaller distances, too.

This works around it. Only forcing ZD1201_CMDCODE_DISABLE is not enough to prevent interference.

From: Jirka Benc <[email protected]>

drivers/net/wireless/zd1201.c +2 -0
@@ -1835,6 +1835,8 @@
 	    zd->dev->name);
 	
 	usb_set_intfdata(interface, zd);
+	zd1201_enable(zd);	/* zd1201 likes to startup shouting, interfering */
+	zd1201_disable(zd); 	/* with all the wifis in range */
 	return 0;
 
 err_net:
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw

drivers/net/wireless/zd1201.c line 1839

Quoted 2 lines · Pavel Machek
drivers/net/wireless/zd1201.c +2 -0
+	zd1201_enable(zd);	/* zd1201 likes to startup shouting, interfering */
+	zd1201_disable(zd); 	/* with all the wifis in range */

I would prefer to track it down and find out where exactly is the problem instead of this quick hack.

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs
#2 lore raw
Quoted 6 lines · Jiri Benc

drivers/net/wireless/zd1201.c line 1839

Quoted 2 lines · Pavel Machek
drivers/net/wireless/zd1201.c +2 -0
+	zd1201_enable(zd);	/* zd1201 likes to startup shouting, interfering */
+	zd1201_disable(zd); 	/* with all the wifis in range */

I would prefer to track it down and find out where exactly is the problem instead of this quick hack.

Well, I'll try _enable() alone, but it seems to me that _enable() command is needed to initialize radio properly. I do not think we can get much further without firmware sources...

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw
Quoted 3 lines · Pavel Machek

Well, I'll try _enable() alone, but it seems to me that _enable() command is needed to initialize radio properly. I do not think we can get much further without firmware sources...

If you can formulate a proper and technical description of the issue (and exactly what is needed to workaround it), I can contact ZyDAS for you. They have been very helpful with ZD1211.

Daniel

#4 lore raw

Hi!

Quoted 7 lines
Quoted 3 lines

Well, I'll try _enable() alone, but it seems to me that _enable() command is needed to initialize radio properly. I do not think we can get much further without firmware sources...

If you can formulate a proper and technical description of the issue (and exactly what is needed to workaround it), I can contact ZyDAS for you. They have been very helpful with ZD1211.

Okay, the issue is:

if you plug zd1201 into USB, it starts jamming radio, immediately. Enable/disable, or iwlist wlan0 scan, or basically any operation unjams the radio. This patch works it around:

drivers/net/wireless/zd1201.c +2 -2
index 335eaf3..dcc7bc7 100644
@@ -1835,8 +1835,8 @@ static int zd1201_probe(struct usb_inter
 	    zd->dev->name);
 	
 	usb_set_intfdata(interface, zd);
-	zd1201_enable(zd);
-	zd1201_disable(zd);
+	zd1201_enable(zd);	/* zd1201 likes to startup enabled, interfering */
+	zd1201_disable(zd); 	/* with all the wifis in range */
 	return 0;
 
 err_net:

....question is "is that right solution, or is something different needed to solve that problem properly"?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#5 lore raw

Hi!

Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

Well, I'll try _enable() alone, but it seems to me that _enable() command is needed to initialize radio properly. I do not think we can get much further without firmware sources...

If you can formulate a proper and technical description of the issue (and exactly what is needed to workaround it), I can contact ZyDAS for you. They have been very helpful with ZD1211.

Quoted 5 lines

Okay, the issue is:

if you plug zd1201 into USB, it starts jamming radio, immediately. Enable/disable, or iwlist wlan0 scan, or basically any operation unjams the radio. This patch works it around:

Of course, the patch should have been:

diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index 335eaf3..dcc7bc7 100644
--- a/drivers/net/wireless/zd1201.c
+++ b/drivers/net/wireless/zd1201.c
@@ -1835,6 +1835,8 @@ static int zd1201_probe(struct usb_inter
zd->dev->name);

usb_set_intfdata(interface, zd);
+ zd1201_enable(zd); /* zd1201 likes to startup enabled, interfering */
+ zd1201_disable(zd); /* with all the wifis in range */
return 0;

err_net:

....question is "is that right solution, or is something different needed to solve that problem properly"?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#6 lore raw
In reply to Pavel Machek
Quoted 3 lines · Pavel Machek

if you plug zd1201 into USB, it starts jamming radio, immediately. Enable/disable, or iwlist wlan0 scan, or basically any operation unjams the radio. This patch works it around:

Can we be any more specific?

What is the interference - is it transmitting random packets, or just emitting a magical cloud of invisible anti-wifi?

At which precise point does the interference start? Does it happen even without the driver loaded?

Which operation is the one which stops the interference, the enable or the disable?

Does this happen on every plug in, or just sometimes? Is it affected by usage patterns such as having the device plugged in throughout boot, reloading the module, etc?

Thanks,
Daniel

#7 lore raw

Hi!

I'll try to.

Quoted 8 lines
Quoted 3 lines

if you plug zd1201 into USB, it starts jamming radio, immediately. Enable/disable, or iwlist wlan0 scan, or basically any operation unjams the radio. This patch works it around:

Can we be any more specific?

What is the interference - is it transmitting random packets, or just emitting a magical cloud of invisible anti-wifi?

Magical cloud, I'm afraid.

Quoted 1 line

At which precise point does the interference start?

When the card is inserted.

Quoted 2 lines

Does it happen even
without the driver loaded?

Will try.

Quoted 2 lines

Which operation is the one which stops the interference, the enable or the disable?

Disable alone was not enough to stop interference.

Quoted 1 line

Does this happen on every plug in, or just sometimes?

In 70% or so.

Quoted 3 lines

Is it affected by
usage patterns such as having the device plugged in throughout boot, reloading the module, etc?

Will try.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#8 lore raw
Quoted 4 lines · Pavel Machek
Quoted 2 lines

Which operation is the one which stops the interference, the enable or the disable?

Disable alone was not enough to stop interference.

I'm going to drop this patch for now, in the hopes that with Daniel's ZyDas contacts you can devise a more palatable solution.

Thanks,

John

Signature · 2 lines
John W. Linville
[email protected]
#9 lore raw

Hi!

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Which operation is the one which stops the interference, the enable or the disable?

Disable alone was not enough to stop interference.

I'm going to drop this patch for now, in the hopes that with Daniel's ZyDas contacts you can devise a more palatable solution.

I'd actually like you to keep it, it does not seem ZyDas contacts are going anywhere.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#10 lore raw
Quoted 2 lines · Pavel Machek

I'd actually like you to keep it, it does not seem ZyDas contacts are going anywhere.

ZyDAS did not respond to me about this. At least we know more about the problem now anyway :)

Daniel

#11 lore raw
In reply to Daniel Drake

Hi!

Quoted 5 lines
Quoted 3 lines · Pavel Machek

if you plug zd1201 into USB, it starts jamming radio, immediately. Enable/disable, or iwlist wlan0 scan, or basically any operation unjams the radio. This patch works it around:

Quoted 7 lines

Can we be any more specific?

At which precise point does the interference start? Does it happen even without the driver loaded?

Which operation is the one which stops the interference, the enable or the disable?

enable alone is enough to stop the interference, but leaving card enabled after load seems like a dirty hack.

Quoted 3 lines

Does this happen on every plug in, or just sometimes? Is it affected by usage patterns such as having the device plugged in throughout boot, reloading the module, etc?

If I remove the firmware file, interference does not start... that should be close to "not having module loaded".

I think I've answered all the questions now? :-).

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html