aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index baf6e60d49ae..a728c45b0d33 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -3522,8 +3522,8 @@ static void iwl4965_handle_data_packet(struct iwl_priv *priv, int is_data,
3522 rx_start->byte_count = amsdu->byte_count; 3522 rx_start->byte_count = amsdu->byte_count;
3523 rx_end = (__le32 *) (((u8 *) hdr) + len); 3523 rx_end = (__le32 *) (((u8 *) hdr) + len);
3524 } 3524 }
3525 if (len > 2342 || len < 16) { 3525 if (len > IWL_RX_BUF_SIZE || len < 16) {
3526 IWL_DEBUG_DROP("byte count out of range [16,2342]" 3526 IWL_WARNING("byte count out of range [16,4K]"
3527 " : %d\n", len); 3527 " : %d\n", len);
3528 return; 3528 return;
3529 } 3529 }