All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] ath9k WPA2-PEAP MSCHAPV2 Connectivity issue
@ 2013-09-07 19:25 James Hogan
  2013-09-08  4:27 ` Sujith Manoharan
  0 siblings, 1 reply; 20+ messages in thread
From: James Hogan @ 2013-09-07 19:25 UTC (permalink / raw)
  To: ath9k-devel

    Hello, I am having an issue connecting to my University's network.
It seems that I can connect to the network just fine, but upon trying to
surf the internet, I get about 20-30 seconds of service and then all of
a sudden, I can no longer reach the internet. I have been dealing with
this for a few weeks now and have contacted the gentoo community to try
and get some assistance from them, but it doesn't seem that they can
help me right now. I have tried this on my laptop which is also running
an ath9k NIC under fedora and I am having the same issue. I've also
contacted my I.T. department which expressed to me that they have been
having issues with Atheros cards as well. So, for the sake of classes, I
switched my laptop over to windows until I can find a way to get this
resolved, and I am getting great service running windows 8; before doing
that I have tried fresh installs and wiping all of my settings to make
sure that it is not on my end.

On my desktop I am using a TP-Link TL-WDN4800 and I am able to connect
to WPA2-PSK and other non-enterprise networks just fine. I've done a
"iwlist wlan0 scan" and the following is the output I received regarding
the network:

          Cell 04 - Address: 00:24:6C:5E:C4:03
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=53/70  Signal level=-57 dBm 
                    Encryption key:on
                    ESSID:"Liberty-Secure"
                    Bit Rates:2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s
                              12 Mb/s; 18 Mb/s; 24 Mb/s
                    Bit Rates:36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000030023b991c
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 000E4C6962657274792D536563757265
                    IE: Unknown: 0108840B0C1216182430
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 320348606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : 802.1x
                    IE: Unknown:
2D1A4C101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown:
3D1601001B00000000000000000000000000000000000000
                    IE: Unknown:
DD180050F2020101800003A4000027A4000042435E0062322F00

          Cell 07 - Address: 00:1A:1E:26:29:72
                    Channel:48
                    Frequency:5.24 GHz (Channel 48)
                    Quality=61/70  Signal level=-49 dBm 
                    Encryption key:on
                    ESSID:"Liberty-Secure"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000015e96f0925
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 000E4C6962657274792D536563757265
                    IE: Unknown: 01088C129824B048606C
                    IE: Unknown: 030130
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : 802.1x
                    IE: Unknown:
2D1A4E001BFFFF000000000000000000000000000000000000000000
                    IE: Unknown:
3D1630071B00000000000000000000000000000000000000
                    IE: Unknown:
DD180050F2020101800003A4000027A4000042435E0062322F00

The network is setup with WPA2-PEAP MSCHAPV2 and all I need to log in is
a simple username and password. When connecting, dmesg reads:

[36675.408026] cfg80211: Calling CRDA to update world regulatory domain
[36675.410364] cfg80211: World regulatory domain updated:
[36675.410365] cfg80211:   (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[36675.410367] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300
mBi, 2000 mBm)
[36675.410368] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300
mBi, 2000 mBm)
[36675.410370] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300
mBi, 2000 mBm)
[36675.410371] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300
mBi, 2000 mBm)
[36675.410372] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300
mBi, 2000 mBm)
[36676.219228] wlan0: authenticate with 00:1a:1e:26:29:71
[36676.229755] wlan0: send auth to 00:1a:1e:26:29:71 (try 1/3)
[36676.235179] wlan0: authenticated
[36676.238745] wlan0: associate with 00:1a:1e:26:29:71 (try 1/3)
[36676.247702] wlan0: RX AssocResp from 00:1a:1e:26:29:71 (capab=0x401
status=0 aid=1)
[36676.247738] wlan0: associated

and I am getting high "Tx excessive retries" and "Invalid misc"

wlan0     IEEE 802.11abgn  ESSID:"Liberty-Secure" 
          Mode:Managed  Frequency:2.412 GHz  Access Point:
00:24:6C:5E:C4:03  
          Bit Rate=65 Mb/s   Tx-Power=20 dBm  
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=52/70  Signal level=-58 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:XXX  Invalid misc:XXX   Missed beacon:0

I have also tried many of the "fixes" that I have found online such as
setting nohwcrypt=1, messing with the bit rate, power, txpower, RTS
threshold and Fragmentation Threshold. But none of these or combination
of these seems to help with the connection. Would anyone have an idea of
why I am having this connectivity issue and how it could be fixed?

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [ath9k-devel] ath9k WPA2-PEAP MSCHAPV2 Connectivity issue
@ 2013-10-28 14:34 Джонатан Вашингтон
  2013-10-28 15:47 ` Sujith Manoharan
  2013-10-28 16:20 ` Ben Greear
  0 siblings, 2 replies; 20+ messages in thread
From: Джонатан Вашингтон @ 2013-10-28 14:34 UTC (permalink / raw)
  To: ath9k-devel

On 2013-09-19 17:01, James Hogan:
> I think I have stumbled on to the real issue. I'm sorry if I have been
> wasting your time at all. Apparently, the network is having problems
> with all wireless-n mode cards.
> The network doesn't like how wireless-n is roaming to the different AP's
> and is registering as me disconnecting when the wireless card tries to
> connect to roam to the other AP.
> It's not just ath9k though, Ra-Link and other cards are having these
> issues as well. Is there a way to disable or to make it possible to
> disable the wireless-n mode of the card and just
> use wireless abg? On a note, I noticed when I passed to the command line
> "iw event -r" that at about the time my card would scan, that is when I
> would stop receiving service even though
> my cards never registered as being disconnected. After the scan, the
> card just continues to reissue scans. Sometimes however, it will try to
> reconnect me to the network.  I was talking to one of the IT employees
> in my class today and he said that they have been having this issue with
> all of the newer higher-end cards.

I've been having a similar problem, potentially the same.  My
university updated the firmware in their access points in August, and
while I can still associate with the APs with no trouble, I can only
get traffic through for short periods of time.  As in James's case, I
seem to lose service around when my card scans.

I have been told by my university's wireless team that they are aware
that this issue affects most linux users on campus, but don't
currently have any solution.  Their suggested work-around is to
disable 11n speeds, which apparently "solves" the problem for most
users.  However, while iwconfig can be used to set various rates when
connected to my 11g router at home, the speed seems to be locked at
65Mbps when I'm associated with the router on campus.  That is, "sudo
iwconfig wlan0 rate 54M" and similar directives seem to have no
effect.

For reference, I have an AR9285 card and so far have been using the
ath9k driver that comes with my 3.2.0 debian stock kernel (which might
technically be 3.2.41?).  I have noticed nothing unusual about using
any other networks, including 11n ones elsewhere.

On 2013-09-21 05:40, Ben Greear wrote:
> If you are using ath9k rate control, please try disabling that and use
the minstrel-ht rate control instead.
>
> With a modern wpa_supplicant and kernel you can just disable HT in
the supplicant config, by the way.
>
>
> # disable_ht: Whether HT (802.11n) should be disabled.
> # 0 = HT enabled (if AP supports it)
> # 1 = HT disabled
> #
> # disable_ht40: Whether HT-40 (802.11n) should be disabled.
> # 0 = HT-40 enabled (if AP supports it)
> # 1 = HT-40 disabled

I found I had an older version of wpa_supplicant (v1.0, which is what
appears to be current in debian unstable) that did not support
disable_ht and disable_ht40, so I downloaded a newer version (v2.0)
and compiled it with CONFIG_HT_OVERRIDES enabled.  Using that, I was
able to add disable_ht=1 and disable_ht40=1 to the network block of my
wpa_supplicant configuration file.

When I run wpa_supplicant now in debug mode, it seems to parse these
directives, and even outputs lines like "wlan0: set_disable_ht40: 1"
where it seems to be telling the driver to disable the mode.  However,
iwconfig still indicates that the speed is 65Mbps, and no number of
times manually telling it otherwise seems to have any impact on it.

I don't know whether this limitation is due to an issue with the ath9k
driver, with wpa_supplicant, or with something else, or is simply my
misperception of how things should work.  Either way, I'm tempted to
apply the patch to my ath9k source that James posted so that I can
disable 11n modes altogether, but I'm more than willing to try other
suggestions.

-- 
Jonathan

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

end of thread, other threads:[~2013-11-01 20:53 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-07 19:25 [ath9k-devel] ath9k WPA2-PEAP MSCHAPV2 Connectivity issue James Hogan
2013-09-08  4:27 ` Sujith Manoharan
2013-09-08 17:10   ` James Hogan
2013-09-09 12:28     ` Sujith Manoharan
2013-09-10  7:50       ` Holger Schurig
2013-09-10  8:05         ` Sujith Manoharan
2013-09-10  8:20           ` Holger Schurig
2013-09-11  1:03         ` James Hogan
2013-09-11  1:53           ` Sujith Manoharan
2013-09-11 22:04             ` James Hogan
2013-09-15 14:30             ` Holger Schurig
2013-09-19 15:01             ` James Hogan
2013-09-19 15:48               ` Oleksij Rempel
2013-09-19 15:48                 ` Oleksij Rempel
2013-09-21  3:30                 ` James Hogan
2013-09-21  3:40                   ` Ben Greear
  -- strict thread matches above, loose matches on Subject: below --
2013-10-28 14:34 Джонатан Вашингтон
2013-10-28 15:47 ` Sujith Manoharan
2013-10-28 16:20 ` Ben Greear
2013-11-01 20:53   ` Джонатан Вашингтон

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.