iwn wifi driver 20%-100% packet loss

This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

iwn wifi driver 20%-100% packet loss

Postby ybungalobill » 25 Mar 2013, 20:31

I have an Intel Centrino Advanced-N 6205 wireless card on my Dell E6530 laptop, and am using FreeBSD 9.1 RELEASE for a week now. I have serious connectivity problems: 20%-100% packet loss when pinging my router. I've booted from an Ubuntu USB stick and got there 0 out of 300 packets lost, so I find it very unlikely to be a hardware problem.

How can I debug/solve this?

Thank you for any help.
ybungalobill
Junior Member
 
Posts: 10
Joined: 19 Mar 2013, 16:32

Postby dza » 28 Mar 2013, 22:17

I have got the exact same chipset as you (6205) on ThinkPad T530.

My problem is:
Code: Select all
iwn0: device timeout


on any small package download or any other 10 secs+ network activity.

It's pretty random. Sometimes I can download the whole xorg set, but other times it just fails from bootup. x(
dza
Junior Member
 
Posts: 8
Joined: 28 Mar 2013, 16:14

Postby ybungalobill » 29 Mar 2013, 09:23

Good to know I'm not alone. I've submitted a problem report at http://www.freebsd.org/cgi/query-pr.cgi?pr=177465.
ybungalobill
Junior Member
 
Posts: 10
Joined: 19 Mar 2013, 16:32

Postby dza » 29 Mar 2013, 14:56

ybungalobill wrote:Good to know I'm not alone. I've submitted a problem report at http://www.freebsd.org/cgi/query-pr.cgi?pr=177465.


Hello and thanks for the comment!

Watching and reading the OpenBSD changelog, I might try their source in my kernel.

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/if_iwn.c

Points of interest:

Code: Select all
Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Nov 17 14:02:51 2012 UTC (4 months, 1 week ago) by kettenis
Branches: MAIN
CVS tags: OPENBSD_5_3_BASE, OPENBSD_5_3, HEAD
Diff to: previous 1.117: preferred, coloured
Changes since revision 1.117: +6 -8 lines

Newer chips feature "advanced" bluetooth coexistence, which is why sending
them the "normal" command to configure bluetooth coexistence fails and
makes the firmware crash.  Rename the IWN_FLAG_NO_BT_COEX flag and adjust some
comments to reflect this knowledge.

ok jcs@, mikeb@, mpi@

 Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Sep 2 18:49:36 2011 UTC (18 months, 3 weeks ago) by kettenis
Branches: MAIN
Diff to: previous 1.111: preferred, coloured
Changes since revision 1.111: +9 -1 lines

Differential gain calibration makes the 6005 firmware crap out, so skip it for
now until we figure out why.  This probably means the device won't function
optimally, but that's better than not functioning at all.  Makes my
"Intel Centrinto Advanced-N 6205" work quite well.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Thu Sep 1 18:49:56 2011 UTC (18 months, 3 weeks ago) by kettenis
Branches: MAIN
Diff to: previous 1.110: preferred, coloured
Changes since revision 1.110: +25 -1 lines

The 6005 and 6050-based parts need DC calibration turned on, otherwise the
firmware will crap out, at least on the 6005.  First step to getting my
"Intel Centrino Advanced-N 6205" to work.
dza
Junior Member
 
Posts: 8
Joined: 28 Mar 2013, 16:14

Postby ybungalobill » 31 Mar 2013, 12:46

dza wrote:Watching and reading the OpenBSD changelog, I might try their source in my kernel.


Thank you very much! I merged Revision 1.111 to my kernel. Running ping for a few hours now with 0.0% packet loss. I'm afraid that, due to its non-deterministic nature, it's too early to be sure that it works. Let's wait and see.

However, the average roundtrip time still seems to be about twice longer than with another Windows machine. Though I'm not sure about this point, and it is not critical anyway.
ybungalobill
Junior Member
 
Posts: 10
Joined: 19 Mar 2013, 16:32

Postby dza » 01 Apr 2013, 16:29

ybungalobill wrote:Thank you very much! I merged Revision 1.111 to my kernel. Running ping for a few hours now with 0.0% packet loss. I'm afraid that, due to its non-deterministic nature, it's too early to be sure that it works. Let's wait and see.


I'm so glad to hear that my little discovery helped you :) Something must have worked!

Two quick questions:

1. Did you experience: "[FILE]iwn0: device timeout[/FILE]" as well? Or none?
2. On both 9.1 and the OpenBSD sources?

I gave up on CVS, I couldn't figure out the correct way to download the OpenBSD sources (I use GIT whenever I can and used the others too few times), and meanwhile I deleted my workstation-partition while figuring out the OpenBSD partition manager, whoops :P

Intel drivers were also a pain in the butt for me. It worked the first time, then I reinstalled FreeBSD 9.1 and suddenly I couldn't get them to work at all!

Code: Select all
(EE) No deviced detected
and
Code: Select all
WITH_KMS=yes
WITH_NEW_XORG=yes
and rebuilt all dependecies after instruction from the other thread.

The inability to VT switch was also pretty bad. In general there were a few glitches!

Are you using it for a workstation? My wish was to use FreeBSD entirely for my workstation to get used to it and really familiar with its tools, kernel, system.
dza
Junior Member
 
Posts: 8
Joined: 28 Mar 2013, 16:14

Postby ybungalobill » 02 Apr 2013, 09:46

dza wrote:1. Did you experience: "[FILE]iwn0: device timeout[/FILE]" as well? Or none?
2. On both 9.1 and the OpenBSD sources?


1. No. I experienced high packet loss. Now the packet loss part solved, but I see that it connects with 56Mbps through 11g whereas my equipment should support 300Mbps through 11n. I hope I'll solve this later.
2. I did not try OpenBSD.

I gave up on CVS, I couldn't figure out the correct way to download the OpenBSD sources [...]


The patches you mentioned are small enough to be merged by hand. Why would you download the whole sources?

Are you using it for a workstation?


Yes.
ybungalobill
Junior Member
 
Posts: 10
Joined: 19 Mar 2013, 16:32

Postby ohyes » 03 Apr 2013, 20:25

FreeBSD'hello :f

I don't know really know if the problem is the same but what I know is, when computer (with [FILE]iwn[/FILE] WiFi card) is far away from the source, the connection is not good (FreeBSD 9.1). At the same place, if I boot under Windows, signal is not very good but the WiFi connection is OK. Slow but OK with no interruptions.

With the [FILE]wifimgr[/FILE] front-end (or a scan with [FILE]ifconfig[/FILE]) the computer under FreeBSD always gets the signal.

As [FILE]ifconfig <interface>[/FILE] says that the [FILE]iwn[/FILE] driver is on [file]autoselect mode[/file] my first idea was to force [file]11n mode[/file]. I don't know how, not sure that the far away connection will be better with this.

(Thanks a lot for the iwn driver, cause except far-away there's no problem for my computer).
ohyes
Junior Member
 
Posts: 51
Joined: 17 Nov 2008, 12:36


Return to Mobile Computing

Who is online

Users browsing this forum: No registered users and 1 guest