Re: [Madwifi-devel] unable to attach cipher AES-CCM (solved)
Status: Beta
Brought to you by:
otaku
From: Nicholas J K. <ni...@kr...> - 2006-04-28 18:38:01
|
Did some digging... and then added some more verbose debug messages to net80211/ieee80211_crypto_ccmp.c. From this I discovered wlan_ccmp was not able to load AES crypto support; I simply didn't have it compiled in my kernel - blah! Since I should have noticed the problem and had this solved long ago, might be a good idea to keep debug info similar to the following in net80211/ieee80211_crypto_ccmp.c (aka I did not realize wlan_ccmp would need to load AES crypto support outside of the madwifi modules): --- ieee80211_crypto_ccmp.c 2006-04-28 11:26:29.000000000 -0700 +++ ieee80211_crypto_ccmp.c-nick 2006-04-28 11:26:19.000000000 -0700 @@ -107,6 +110,9 @@ ctx->cc_ic = vap->iv_ic; ctx->cc_tfm = crypto_alloc_tfm("aes", 0); if (ctx->cc_tfm == NULL) { + IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO, + "%s: unable to load AES crypto support\n", + __func__); FREE(ctx, M_DEVBUF); _MOD_DEC_USE(THIS_MODULE); return NULL; Thanks, - nick Nicholas J Kreucher wrote: > Hello! > > Posted this odd behavior to the madwifi-users list but did not get a response... thought I'd try here. > > I am having a problem with WPA2 and CCMP, while WPA with TKIP works fine. Seems the wlan_ccmp module loads ok, but is not being used properly. > > wpa_supplicant reports: > WPA: Installing PTK to the driver. > wpa_driver_madwifi_set_key: alg=CCMP key_idx=0 set_tx=1 seq_len=6 key_len=16 > ioctl[IEEE80211_IOCTL_SETKEY]: No such device or address > WPA: Failed to set PTK to the driver. > > Setting 80211debug +crypto +wpa revels: > ath0: ieee80211_crypto_newkey: unable to attach cipher AES-CCM > > > Loaded modules: (note wlan_ccmp usage count is 0) > ath_pci 97764 0 > ath_rate_sample 13248 1 ath_pci > ath_hal 189584 3 ath_pci,ath_rate_sample > wlan_wep 7232 0 > wlan_scan_sta 15168 1 > wlan_tkip 13056 1 > wlan_ccmp 8768 0 > wlan 202396 7 > ath_pci,ath_rate_sample,wlan_wep,wlan_scan_sta,wlan_tkip,wlan_ccmp > > > Module Information: > wlan: 0.8.4.2 (svn 1502) > ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > ath_rate_sample: 1.2 (svn 1502) > ath_pci: 0.9.4.5 (svn 1502) > ACPI: PCI Interrupt 0000:01:07.0[A] -> Link [LNK4] -> GSI 11 (level, > low) -> IRQ 11 > wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps > 24Mbps 36Mbps 48Mbps 54Mbps > wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > wifi0: H/W encryption support: WEP AES AES_CCM TKIP > wifi0: mac 5.9 phy 4.3 radio 3.6 > wifi0: Use hw queue 1 for WME_AC_BE traffic > wifi0: Use hw queue 0 for WME_AC_BK traffic > wifi0: Use hw queue 2 for WME_AC_VI traffic > wifi0: Use hw queue 3 for WME_AC_VO traffic > wifi0: Use hw queue 8 for CAB traffic > wifi0: Use hw queue 9 for beacons > wifi0: Atheros 5212: mem=0xea000000, irq=11 > > Machine Information: > Gentoo Linux, 2.6.15-gentoo-r1, wpa-supplicant-0.4.8, Linksys WMP55AG PCI Adapter > > Any suggestions or hints on how to further debug would be great. Thanks! > > Nicholas J Kreucher > > |