[ath9k-devel] ath9k: corrupt frames forwarded to mac80211 as decrypted (was: ath9k: receive stops working in AP-mode and 802.11n)

2010-04-16 Thread Johan Hovold
Hi, I now know why 802.11n receive stalls; ath9k is passing corrupt frames to mac80211. The corrupt frames are marked as decrypted so the receive PN is updated to a random number. Later non-corrupt frames with correct PNs are consequently deemed out-of-sequence and are dropped. Connection is

[ath9k-devel] [RFC][PATCH 2/6] ath9k: do not mark frames with RXKEY_IX_INVALID as decrypted

2010-04-16 Thread Johan Hovold
Frames tagged by hardware with ATH9K_RXKEYIX_INVALID should not incorrectly be marked decrypted (even if key index in frame is valid). Signed-off-by: Johan Hovold johan.hov...@lundinova.se --- The current code overrides the hardware flag indicating that the key index is invalid and falsely mark

[ath9k-devel] [RFC][PATCH 4/6] ath9k: do not mark frames with RX_KEY_MISS as decrypted

2010-04-16 Thread Johan Hovold
Frames tagged by hardware with ATH9K_RX_KEY_MISS should not incorrectly be marked decrypted. Signed-off-by: Johan Hovold johan.hov...@lundinova.se --- The frame below has no error flags set besides KeyMiss and would be marked decrypted by the current code. : 88 41 30 00 00 80 48 68 08

[ath9k-devel] [RFC][PATCH 3/6] ath9k: do not mark frames with RX_DECRYPT_BUSY as decrypted

2010-04-16 Thread Johan Hovold
Frames tagged by hardware with ATH9K_RX_DECRYPT_BUSY should not incorrectly be marked decrypted. Signed-off-by: Johan Hovold johan.hov...@lundinova.se --- Some corrupt frames such as the one below have DecryptBusyErr flag set even though frame is marked ok and without DecryptCRCErr set.

[ath9k-devel] [RFC][PATCH 5/6] ath9k: check error flags even if rx frame is marked ok

2010-04-16 Thread Johan Hovold
Check error flags even if frame is marked ok by hardware as this flag may have been incorrectly set. Signed-off-by: Johan Hovold johan.hov...@lundinova.se --- : 88 41 30 00 00 80 48 68 08 af 00 b9 49 c3 e1 3f 0010: 5a 9d 51 71 09 63 00 50 00 00 00 00 ff 54 00 20 0020: 36 9d 46 02

Re: [ath9k-devel] [RFC][PATCH 2/6] ath9k: do not mark frames with RXKEY_IX_INVALID as decrypted

2010-04-16 Thread Jouni Malinen
On Fri, 2010-04-16 at 03:52 -0700, Johan Hovold wrote: Frames tagged by hardware with ATH9K_RXKEYIX_INVALID should not incorrectly be marked decrypted (even if key index in frame is valid). Have you tested this with static WEP configuration? Or broadcast RX with WPA? There must be a reason for

Re: [ath9k-devel] minstrel_ht crashing kernel on IXP4xx platform during iperf throughput test

2010-04-16 Thread Lorenzo Bianconi
maybe I should report to openwrt-devel list, but I think it is the problem of ath9k, caused by using the module minstrel_ht. I have the same issue using ath9k/minstrel_ht. I think the problem is due to the way the streams variable is calculated in minstrel_ht_get_group_idx(). I printed some