recv.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | recv.c (bed3d9c0b71f9afbfec905cb6db3b9f16be29d4d) |
---|---|
1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 808 unchanged lines hidden (view full) --- 817 (ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC | 818 ATH9K_RXERR_KEYMISS)); 819 820 /* 821 * Key miss events are only relevant for pairwise keys where the 822 * descriptor does contain a valid key index. This has been observed 823 * mostly with CCMP encryption. 824 */ | 1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 808 unchanged lines hidden (view full) --- 817 (ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC | 818 ATH9K_RXERR_KEYMISS)); 819 820 /* 821 * Key miss events are only relevant for pairwise keys where the 822 * descriptor does contain a valid key index. This has been observed 823 * mostly with CCMP encryption. 824 */ |
825 if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID) | 825 if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID || 826 !test_bit(rx_stats->rs_keyix, common->ccmp_keymap)) |
826 rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; 827 828 if (!rx_stats->rs_datalen) { 829 RX_STAT_INC(rx_len_err); 830 return false; 831 } 832 833 /* --- 1176 unchanged lines hidden --- | 827 rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; 828 829 if (!rx_stats->rs_datalen) { 830 RX_STAT_INC(rx_len_err); 831 return false; 832 } 833 834 /* --- 1176 unchanged lines hidden --- |