On Wed, 7 May 2014 16:58:05 +0100
Mick <michaelkintz...@gmail.com> wrote:

> I have compiled on a 3.12.13-gentoo kernel:

Try the latest release candidate kernel (3.15-rc4) to make sure you
have most of the the latest iwlwifi changes by upstream; if you want
them all, and are not afraid of working with git, you can try to obtain
even later changes from here:

http://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-next.git

> CONFIG_IWLWIFI=m
> CONFIG_IWLDVM=m
> CONFIG_IWLWIFI_OPMODE_MODULAR=y

Set CONFIG_IWLWIFI_DEBUG=y to see if debug information tells more.

An option to try out too is CONFIG_IWLWIFI_DEBUG_EXPERIMENTAL_UCODE=y.

> My /etc/conf.d/net section says:
> 
> [...]
> wpa_supplicant_wlp4s0="-Dwext"
> [...]

Use nl80211 instead, you'll want to enable this in your kernel as well.

http://wireless.kernel.org/en/developers/Documentation/nl80211
http://wireless.kernel.org/en/users/Documentation/iw‎

>         proto=RSN
>         key_mgmt=WPA-PSK
>         pairwise=CCMP
>         group=CCMP

Try WPA2 AES if you can configure that and the rest of devices
connecting to the router support that, anything else can have a negative
effect on obtaining the higher N speeds; talking about router, which
kind of router is this and which firmware (eg. DD-WRT, ...) does it run?
 
> [  514.377859] iwlwifi 0000:04:00.0 wlp4s0: disabling HT as WMM/QoS is
> not supported by the AP
> [  514.377869] iwlwifi 0000:04:00.0 wlp4s0: disabling VHT as WMM/QoS
> is not supported by the AP

Look if your AP allows you enable WMM, to gain more throughput.


> ioctl[...]: Invalid argument

As suggested above; use nl80211 instead of wext, make sure it is
enabled and thus supported in the kernel.

> # modprobe -v iwlwifi power_save=0 power_level=3 11n_disable=1
> insmod 
> /lib/modules/3.12.13-gentoo/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
> power_save=0 power_level=3 11n_disable=1

You shouldn't need all that, please try back with a plain modprobe.

On a side note, I'm an owner of the same wireless card; currently I am
experiencing the following bug, which has to do with iwlwifi being
stuck in higher rates for one or another reason.

https://bugzilla.kernel.org/show_bug.cgi?id=56581

Looking at the most recent commits, there might be a solution to that;
so, I'll try to pull that later to see if it fixes my issue with it.

http://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-next.git/commit/?id=80763515c371202916ecdb4118dbed51f801aeb5

I experience disconnects when my connection is too idle; this is
because at that moment the router goes to a lower rate, but the card
stays in a higher rate and that mismatch is enough for a timeout that
results in a disconnect. Similarly, in the opposite direction when the
router's rate is too high (due to LAN traffic); I sometimes experience
high response times and slowness, as well as the error from that bug.

There's something going on with the rate control algorithm these days...

As for your disconnects, I think they are due to nl80211 and/or your
network and/or router configuration; but it might very well be due to
that same bug above, in which case I guess you'll have to wait a bit to
see whether the debugging and resolution to it help you.

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D

Attachment: signature.asc
Description: PGP signature

Reply via email to