On Tue, Jan 31, 2012 at 1:13 AM, Laurent Bonnans <bonnans.l@xxxxxxxxx> wrote: > Since the update from linux 3.2.1 to 3.2.2, dhcp stopped working on > some APs on my laptop with an AR9285 Wireless card. > > dhcp works fine on an open wifi network but receives no response on a > wep network I use. I haven't been able to test it on a third network > for now. reverting "ath9k_hw: fix interpretation of the rx KeyMiss flag" does helps. i need to analyze if it exposes some real issue which need to be fixed. > Reverting to 3.2.1 solved the issue which is still there in the latest > git revision as of today. > > DHCPDISCOVER requests are still sent but no ACK is received (nothing > in Wireshark). > > dhcp failure may be one particular instance of the problem but I > haven't been able to connect with a static ip (my ap doesn't like it) > so this is the > only result I know. > > > ver_linux output (latest git kernel) : > > Linux litbox 3.3.0-rc1-hack-00383-g0a96265 #1 SMP PREEMPT Mon Jan 30 > 02:22:54 CET 2012 x86_64 Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz > GenuineIntel GNU/Linux > > Gnu C 4.6.2 > Gnu make 3.82 > binutils 2.22.0.20111227 > util-linux 2.20.1 > mount support > module-init-tools 4 > e2fsprogs 1.42 > jfsutils 1.1.15 > reiserfsprogs 3.6.21 > xfsprogs 3.1.7 > pcmciautils 018 > PPP 2.4.5 > Linux C Library 2.15 > Dynamic linker (ldd) 2.15 > Linux C++ Library so.6.0 > Procps 3.2.8 > Net-tools 1.60 > Kbd 1.15.3 > Sh-utils 8.15 > wireless-tools 29 > Modules Loaded ipv6 cpufreq_ondemand fuse xts gf128mul > uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev > v4l2_compat_ioctl32 media arc4 ath9k ath9k_common ath9k_hw nouveau > ehci_hcd usbcore i915 snd_hda_codec_hdmi snd_hda_codec_realtek joydev > ath ttm intel_ips mac80211 cfg80211 asus_laptop sparse_keymap rfkill > drm_kms_helper drm snd_hda_intel snd_hda_codec snd_hwdep mxm_wmi > psmouse i2c_algo_bit serio_raw i2c_core pcspkr input_polldev mei > iTCO_wdt usb_common evdev intel_agp iTCO_vendor_support intel_gtt > atl1c wmi video snd_pcm snd_page_alloc snd_timer snd soundcore thermal > battery ac button tun kvm_intel kvm aes_x86_64 aes_generic > acpi_cpufreq mperf processor freq_table ext4 crc16 jbd2 mbcache > dm_crypt dm_mod sd_mod ahci libahci libata scsi_mod > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- shafi
From 171ef4d092d47bf63b33b1e4d5eafd4320e6bb1d Mon Sep 17 00:00:00 2001 From: Mohammed Shafi Shajakhan <mohammed@xxxxxxxxxxxxxxxx> Date: Tue, 31 Jan 2012 10:36:47 +0530 Subject: [PATCH] Revert "ath9k_hw: fix interpretation of the rx KeyMiss flag" This reverts commit 7a532fe7131216a02c81a6c1b1f8632da1195a58. --- drivers/net/wireless/ath/ath9k/ar9003_mac.c | 5 ++--- drivers/net/wireless/ath/ath9k/mac.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c index 09b8c9d..88c81c5 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c @@ -557,11 +557,10 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs, rxs->rs_status |= ATH9K_RXERR_DECRYPT; else if (rxsp->status11 & AR_MichaelErr) rxs->rs_status |= ATH9K_RXERR_MIC; + if (rxsp->status11 & AR_KeyMiss) + rxs->rs_status |= ATH9K_RXERR_KEYMISS; } - if (rxsp->status11 & AR_KeyMiss) - rxs->rs_status |= ATH9K_RXERR_KEYMISS; - return 0; } EXPORT_SYMBOL(ath9k_hw_process_rxdesc_edma); diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index e196aba..fd3f19c 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c @@ -618,11 +618,10 @@ int ath9k_hw_rxprocdesc(struct ath_hw *ah, struct ath_desc *ds, rs->rs_status |= ATH9K_RXERR_DECRYPT; else if (ads.ds_rxstatus8 & AR_MichaelErr) rs->rs_status |= ATH9K_RXERR_MIC; + if (ads.ds_rxstatus8 & AR_KeyMiss) + rs->rs_status |= ATH9K_RXERR_KEYMISS; } - if (ads.ds_rxstatus8 & AR_KeyMiss) - rs->rs_status |= ATH9K_RXERR_KEYMISS; - return 0; } EXPORT_SYMBOL(ath9k_hw_rxprocdesc); -- 1.7.0.4