recv.c (6ba74014c1ab0e37af7de6f64b4eccbbae3cb9e7) | recv.c (c8f3b7213342d905cbb75d6c8820d9141205f3a0) |
---|---|
1/* 2 * Copyright (c) 2008-2009 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 --- 1126 unchanged lines hidden (view full) --- 1135 1136 /* 1137 * If we're asked to flush receive queue, directly 1138 * chain it back at the queue without processing it. 1139 */ 1140 if (flush) 1141 goto requeue; 1142 | 1/* 2 * Copyright (c) 2008-2009 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 --- 1126 unchanged lines hidden (view full) --- 1135 1136 /* 1137 * If we're asked to flush receive queue, directly 1138 * chain it back at the queue without processing it. 1139 */ 1140 if (flush) 1141 goto requeue; 1142 |
1143 retval = ath9k_rx_skb_preprocess(common, hw, hdr, &rs, 1144 rxs, &decrypt_error); 1145 if (retval) 1146 goto requeue; 1147 |
|
1143 rxs->mactime = (tsf & ~0xffffffffULL) | rs.rs_tstamp; 1144 if (rs.rs_tstamp > tsf_lower && 1145 unlikely(rs.rs_tstamp - tsf_lower > 0x10000000)) 1146 rxs->mactime -= 0x100000000ULL; 1147 1148 if (rs.rs_tstamp < tsf_lower && 1149 unlikely(tsf_lower - rs.rs_tstamp > 0x10000000)) 1150 rxs->mactime += 0x100000000ULL; 1151 | 1148 rxs->mactime = (tsf & ~0xffffffffULL) | rs.rs_tstamp; 1149 if (rs.rs_tstamp > tsf_lower && 1150 unlikely(rs.rs_tstamp - tsf_lower > 0x10000000)) 1151 rxs->mactime -= 0x100000000ULL; 1152 1153 if (rs.rs_tstamp < tsf_lower && 1154 unlikely(tsf_lower - rs.rs_tstamp > 0x10000000)) 1155 rxs->mactime += 0x100000000ULL; 1156 |
1152 retval = ath9k_rx_skb_preprocess(common, hw, hdr, &rs, 1153 rxs, &decrypt_error); 1154 if (retval) 1155 goto requeue; 1156 | |
1157 /* Ensure we always have an skb to requeue once we are done 1158 * processing the current buffer's skb */ 1159 requeue_skb = ath_rxbuf_alloc(common, common->rx_bufsize, GFP_ATOMIC); 1160 1161 /* If there is no memory we ignore the current RX'd frame, 1162 * tell hardware it can give us a new frame using the old 1163 * skb and put it at the tail of the sc->rx.rxbuf list for 1164 * processing. */ --- 64 unchanged lines hidden --- | 1157 /* Ensure we always have an skb to requeue once we are done 1158 * processing the current buffer's skb */ 1159 requeue_skb = ath_rxbuf_alloc(common, common->rx_bufsize, GFP_ATOMIC); 1160 1161 /* If there is no memory we ignore the current RX'd frame, 1162 * tell hardware it can give us a new frame using the old 1163 * skb and put it at the tail of the sc->rx.rxbuf list for 1164 * processing. */ --- 64 unchanged lines hidden --- |