From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mats Johannesson Date: Thu, 18 Sep 2008 04:46:18 +0200 Subject: [ath9k-devel] ath9k constantly drops network connection In-Reply-To: <20080917191003.GC6198@tesla> References: <20080917191003.GC6198@tesla> Message-ID: <20080918044618.0cd64cd9@loke.fish.not> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, 17 Sep 2008 12:10:03 -0700 Luis R. Rodriguez wrote: > On Wed, Sep 17, 2008 at 03:05:59AM -0700, Partha Bagchi wrote: [...] > > 03:42:27 EDT 2008 i686 i686 i386 GNU/Linux > > Please try appling the patch titled: > > "[PATCH] ath9k: connectivity is lost after Group rekeying is done" > > which was posted on linux-wireless. If that fixes your issue I can A question Luis. Looking at the code (and not knowing _anything_ about wireless internals): - if (sc->sc_keytype == ATH9K_CIPHER_WEP) + if (tx_info->control.hw_key->alg == ALG_WEP) txctl->keytype = ATH9K_KEY_TYPE_WEP; - else if (sc->sc_keytype == ATH9K_CIPHER_TKIP) + else if (tx_info->control.hw_key->alg == ALG_TKIP) txctl->keytype = ATH9K_KEY_TYPE_TKIP; - else if (sc->sc_keytype == ATH9K_CIPHER_AES_CCM) + else if (tx_info->control.hw_key->alg == ALG_CCMP) txctl->keytype = ATH9K_KEY_TYPE_AES; I'm confused regarding the AES cypher. My AP is set through its interface as: Security Mode: WPA-Personal WPA Mode: WPA2 Only Cipher Type: AES Group Key Update Interval: 2461 seconds (~41 minutes) Pre-Shared Key: Loooong long key. But the output from "iwlist scan" tells another story: Encryption key:on IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK So someones lying... Does this effect ath9k? I'll compile another kernel and try to get rid of TKIP stuff completely to test this out. At the moment the environment looks like this: grep -i tkip my-.config grep -i michael my-.config # CONFIG_CRYPTO_MICHAEL_MIC is not set grep -i ecb my-.config CONFIG_CRYPTO_ECB=m grep -i aes my-.config CONFIG_CRYPTO_AES=m CONFIG_CRYPTO_AES_X86_64=m loke at sleipner:~$ lsmod|grep -i ecb ecb 1344 2 crypto_blkcipher 8964 1 ecb crypto_algapi 6336 6 aes_x86_64,aes_generic,arc4,ecb,crypto_blkcipher,cryptomgr loke at sleipner:~$ lsmod|grep -i aes aes_x86_64 6784 3 aes_generic 25576 1 aes_x86_64 crypto_algapi 6336 6 aes_x86_64,aes_generic,arc4,ecb,crypto_blkcipher,cryptomgr Perhaps I'll break ath9k if the kernel lets me compile without an ecb module... Mvh Mats Johannesson