recv.c (990e08a0f6115ce93b480325a575b535c92513ee) | recv.c (2a5783b817c90ce6fb82a21e103335d1ecbac430) |
---|---|
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 --- 798 unchanged lines hidden (view full) --- 807 u8 rx_status_len = ah->caps.rx_status_len; 808 809 fc = hdr->frame_control; 810 811 is_mc = !!is_multicast_ether_addr(hdr->addr1); 812 is_valid_tkip = rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && 813 test_bit(rx_stats->rs_keyix, common->tkip_keymap); 814 strip_mic = is_valid_tkip && ieee80211_is_data(fc) && | 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 --- 798 unchanged lines hidden (view full) --- 807 u8 rx_status_len = ah->caps.rx_status_len; 808 809 fc = hdr->frame_control; 810 811 is_mc = !!is_multicast_ether_addr(hdr->addr1); 812 is_valid_tkip = rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && 813 test_bit(rx_stats->rs_keyix, common->tkip_keymap); 814 strip_mic = is_valid_tkip && ieee80211_is_data(fc) && |
815 ieee80211_has_protected(fc) && |
|
815 !(rx_stats->rs_status & 816 (ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC | 817 ATH9K_RXERR_KEYMISS)); 818 819 /* 820 * Key miss events are only relevant for pairwise keys where the 821 * descriptor does contain a valid key index. This has been observed 822 * mostly with CCMP encryption. --- 1186 unchanged lines hidden --- | 816 !(rx_stats->rs_status & 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. --- 1186 unchanged lines hidden --- |